Constraints on subgroups of rows using partial indices in PostgreSQL | Hacker News Reader