UniqueKey
Planner tracking of unique keys of relations for optimizations.
Versions
- PostgreSQL 20 · worked-on · new · major
- Remove redundant DISTINCT when GROUP BY already guarantees uniqueness
- Tracking per-RelOptInfo uniqueness during planning
- Skipping NULL keys when uniqueifying a semijoin's RHS
- Skipping NULL keys when uniqueifying a semijoin's RHS
- Skip a redundant singleton GROUP BY node
- Skip a redundant singleton GROUP BY node
- PostgreSQL 19 · worked-on · new · moderate
- PostgreSQL 18 · worked-on · new · major
- PostgreSQL 17 · worked-on · new · major
Threads
- Tracking per-RelOptInfo uniqueness during planning
- Skip a redundant singleton GROUP BY node
- Skip a redundant singleton GROUP BY node
- Skipping NULL keys when uniqueifying a semijoin's RHS
- Skipping NULL keys when uniqueifying a semijoin's RHS
- Remove redundant DISTINCT when GROUP BY already guarantees uniqueness
- BUG #19567: Redundant outer DISTINCT causes a second full aggregation above UNION
- Avoid unnecessary processing of DISTINCT clause (Was: Unique Keys)
- UniqueKey v2
- Use "unique keys" to enhance outer join removal
- Redundant Unique plan node for table with a unique index
- Tracking notnull attributes inside Var
- Keep notnullattrs in RelOptInfo (Was part of UniqueKey patch series)
- UniqueKey on Partitioned table.
- [PATCH] Keeps tracking the uniqueness with UniqueKey
- [PATCH] Erase the distinctClause if the result is unique by definition
- [PATCH] query rewrite for distinct stage under some cases