OSDN Git Service

GROUP BY can only infer functional dependency from non-deferrable primary keys.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Sep 2010 15:45:42 +0000 (15:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Sep 2010 15:45:42 +0000 (15:45 +0000)
commita756f5ce140914d6b316721f42b43e828820e93e
treefd12573737015689abf77534b2da3d69dee34ff1
parent8d8d5cb612bb008741f2104a5479cb0c22b76e1d
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.
src/backend/catalog/pg_constraint.c