GROUP BY can only infer functional dependency from non-deferrable primary keys.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: a756f5ce140914d6b316721f42b43e828820e93e
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2010-09-05T15:45:42Z
Releases: 9.1.0
GROUP BY can only infer functional dependency from non-deferrable primary keys.

Peter's original patch had this right, but I dropped the check while revising
the code to search pg_constraint instead of pg_index.  Spotted by Dean Rasheed.

Files

PathChange+/−
src/backend/catalog/pg_constraint.c modified +4 −1