GROUP BY can only infer functional dependency from non-deferrable primary keys.
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.

50wu/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,adam8157/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,arcivanov/postgres-xl,50wu/gpdb,arcivanov/postgres-xl,yazun/postgres-xl,yazun/postgres-xl,adam8157/gpdb,adam8157/gpdb,ashwinstar/gpdb,snaga/postgres-xl,tpostgres-projects/tPostgres,xinzweb/gpdb,techdragon/Postgres-XL,kmjungersen/PostgresXL,adam8157/gpdb,xinzweb/gpdb,lisakowen/gpdb,Postgres-XL/Postgres-XL,zeroae/postgres-xl,yazun/postgres-xl,greenplum-db/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,50wu/gpdb,50wu/gpdb,lisakowen/gpdb,tpostgres-projects/tPostgres,kmjungersen/PostgresXL,greenplum-db/gpdb,jmcatamney/gpdb,ovr/postgres-xl,jmcatamney/gpdb,ovr/postgres-xl,snaga/postgres-xl,postmind-net/postgres-xl,greenplum-db/gpdb,kmjungersen/PostgresXL,adam8157/gpdb,arcivanov/postgres-xl,zeroae/postgres-xl,lisakowen/gpdb,Postgres-XL/Postgres-XL,arcivanov/postgres-xl,ashwinstar/gpdb,postmind-net/postgres-xl,zeroae/postgres-xl,adam8157/gpdb,oberstet/postgres-xl,kmjungersen/PostgresXL,xinzweb/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,tpostgres-projects/tPostgres,arcivanov/postgres-xl,pavanvd/postgres-xl,lisakowen/gpdb,50wu/gpdb,greenplum-db/gpdb,lisakowen/gpdb,xinzweb/gpdb,Postgres-XL/Postgres-XL,xinzweb/gpdb,postmind-net/postgres-xl,greenplum-db/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,adam8157/gpdb,lisakowen/gpdb,pavanvd/postgres-xl,techdragon/Postgres-XL,oberstet/postgres-xl,xinzweb/gpdb,ovr/postgres-xl,xinzweb/gpdb,50wu/gpdb,jmcatamney/gpdb,postmind-net/postgres-xl,ashwinstar/gpdb,greenplum-db/gpdb,pavanvd/postgres-xl,50wu/gpdb,ovr/postgres-xl,jmcatamney/gpdb,pavanvd/postgres-xl,oberstet/postgres-xl,techdragon/Postgres-XL,snaga/postgres-xl,arcivanov/postgres-xl,ashwinstar/gpdb,Postgres-XL/Postgres-XL,jmcatamney/gpdb,oberstet/postgres-xl,postmind-net/postgres-xl,kmjungersen/PostgresXL,ovr/postgres-xl,50wu/gpdb,lisakowen/gpdb,ashwinstar/gpdb,snaga/postgres-xl,yazun/postgres-xl,tpostgres-projects/tPostgres,zeroae/postgres-xl,xinzweb/gpdb,ashwinstar/gpdb,lisakowen/gpdb,zeroae/postgres-xl,yazun/postgres-xl,jmcatamney/gpdb,techdragon/Postgres-XL,snaga/postgres-xl,tpostgres-projects/tPostgres