Detect duplicate aggregate calls and evaluate only one copy.  This speeds up some useful real-world cases like SELECT x, COUNT(*) FROM t GROUP BY x HAVING COUNT(*) > 100.
Detect duplicate aggregate calls and evaluate only one copy.  This
speeds up some useful real-world cases like
SELECT x, COUNT(*) FROM t GROUP BY x HAVING COUNT(*) > 100.

jmcatamney/gpdb,Postgres-XL/Postgres-XL,zaksoup/gpdb,chrishajas/gpdb,snaga/postgres-xl,rvs/gpdb,Quikling/gpdb,kmjungersen/PostgresXL,xuegang/gpdb,snaga/postgres-xl,janebeckman/gpdb,janebeckman/gpdb,xinzweb/gpdb,tpostgres-projects/tPostgres,50wu/gpdb,randomtask1155/gpdb,cjcjameson/gpdb,kaknikhil/gpdb,Quikling/gpdb,lintzc/gpdb,lintzc/gpdb,lpetrov-pivotal/gpdb,pavanvd/postgres-xl,xinzweb/gpdb,foyzur/gpdb,tpostgres-projects/tPostgres,lisakowen/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,chrishajas/gpdb,janebeckman/gpdb,pavanvd/postgres-xl,lintzc/gpdb,ovr/postgres-xl,lintzc/gpdb,tangp3/gpdb,ashwinstar/gpdb,Postgres-XL/Postgres-XL,tpostgres-projects/tPostgres,tpostgres-projects/tPostgres,yuanzhao/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,zaksoup/gpdb,CraigHarris/gpdb,foyzur/gpdb,xuegang/gpdb,edespino/gpdb,xuegang/gpdb,lintzc/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,tpostgres-projects/tPostgres,jmcatamney/gpdb,kaknikhil/gpdb,chrishajas/gpdb,atris/gpdb,randomtask1155/gpdb,lintzc/gpdb,atris/gpdb,rubikloud/gpdb,Chibin/gpdb,xinzweb/gpdb,rvs/gpdb,zeroae/postgres-xl,edespino/gpdb,foyzur/gpdb,randomtask1155/gpdb,rvs/gpdb,Chibin/gpdb,tangp3/gpdb,greenplum-db/gpdb,kmjungersen/PostgresXL,arcivanov/postgres-xl,Postgres-XL/Postgres-XL,royc1/gpdb,rubikloud/gpdb,arcivanov/postgres-xl,CraigHarris/gpdb,xuegang/gpdb,lisakowen/gpdb,randomtask1155/gpdb,ahachete/gpdb,Chibin/gpdb,edespino/gpdb,oberstet/postgres-xl,CraigHarris/gpdb,ovr/postgres-xl,adam8157/gpdb,rvs/gpdb,lpetrov-pivotal/gpdb,Quikling/gpdb,atris/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,ovr/postgres-xl,rvs/gpdb,zeroae/postgres-xl,postmind-net/postgres-xl,ahachete/gpdb,kaknikhil/gpdb,xuegang/gpdb,Quikling/gpdb,50wu/gpdb,foyzur/gpdb,foyzur/gpdb,atris/gpdb,jmcatamney/gpdb,ahachete/gpdb,Quikling/gpdb,rvs/gpdb,chrishajas/gpdb,techdragon/Postgres-XL,adam8157/gpdb,lintzc/gpdb,arcivanov/postgres-xl,cjcjameson/gpdb,rvs/gpdb,royc1/gpdb,royc1/gpdb,yuanzhao/gpdb,lisakowen/gpdb,arcivanov/postgres-xl,zeroae/postgres-xl,yuanzhao/gpdb,oberstet/postgres-xl,atris/gpdb,janebeckman/gpdb,ahachete/gpdb,yuanzhao/gpdb,kmjungersen/PostgresXL,adam8157/gpdb,edespino/gpdb,randomtask1155/gpdb,ahachete/gpdb,xuegang/gpdb,50wu/gpdb,cjcjameson/gpdb,oberstet/postgres-xl,kaknikhil/gpdb,edespino/gpdb,pavanvd/postgres-xl,postmind-net/postgres-xl,cjcjameson/gpdb,ahachete/gpdb,edespino/gpdb,royc1/gpdb,adam8157/gpdb,rubikloud/gpdb,xuegang/gpdb,postmind-net/postgres-xl,Chibin/gpdb,randomtask1155/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,rvs/gpdb,Quikling/gpdb,Quikling/gpdb,ahachete/gpdb,lpetrov-pivotal/gpdb,foyzur/gpdb,arcivanov/postgres-xl,foyzur/gpdb,lintzc/gpdb,yazun/postgres-xl,chrishajas/gpdb,edespino/gpdb,cjcjameson/gpdb,techdragon/Postgres-XL,Quikling/gpdb,lisakowen/gpdb,yuanzhao/gpdb,adam8157/gpdb,yazun/postgres-xl,rubikloud/gpdb,tangp3/gpdb,cjcjameson/gpdb,lisakowen/gpdb,lintzc/gpdb,zaksoup/gpdb,0x0FFF/gpdb,ashwinstar/gpdb,kmjungersen/PostgresXL,Chibin/gpdb,tangp3/gpdb,tangp3/gpdb,postmind-net/postgres-xl,0x0FFF/gpdb,zeroae/postgres-xl,yuanzhao/gpdb,Chibin/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,yuanzhao/gpdb,kmjungersen/PostgresXL,0x0FFF/gpdb,zaksoup/gpdb,Postgres-XL/Postgres-XL,Quikling/gpdb,CraigHarris/gpdb,ashwinstar/gpdb,cjcjameson/gpdb,xinzweb/gpdb,randomtask1155/gpdb,lpetrov-pivotal/gpdb,50wu/gpdb,snaga/postgres-xl,zeroae/postgres-xl,zaksoup/gpdb,snaga/postgres-xl,lisakowen/gpdb,chrishajas/gpdb,zaksoup/gpdb,atris/gpdb,techdragon/Postgres-XL,zaksoup/gpdb,ashwinstar/gpdb,rvs/gpdb,xinzweb/gpdb,atris/gpdb,edespino/gpdb,CraigHarris/gpdb,ovr/postgres-xl,janebeckman/gpdb,royc1/gpdb,royc1/gpdb,Quikling/gpdb,rubikloud/gpdb,greenplum-db/gpdb,0x0FFF/gpdb,50wu/gpdb,Chibin/gpdb,50wu/gpdb,adam8157/gpdb,lpetrov-pivotal/gpdb,0x0FFF/gpdb,Chibin/gpdb,lisakowen/gpdb,janebeckman/gpdb,janebeckman/gpdb,CraigHarris/gpdb,CraigHarris/gpdb,kaknikhil/gpdb,Postgres-XL/Postgres-XL,rubikloud/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,kaknikhil/gpdb,edespino/gpdb,lpetrov-pivotal/gpdb,chrishajas/gpdb,snaga/postgres-xl,50wu/gpdb,arcivanov/postgres-xl,greenplum-db/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,adam8157/gpdb,oberstet/postgres-xl,postmind-net/postgres-xl,kaknikhil/gpdb,0x0FFF/gpdb,techdragon/Postgres-XL,ovr/postgres-xl,jmcatamney/gpdb,lpetrov-pivotal/gpdb,yazun/postgres-xl,jmcatamney/gpdb,kaknikhil/gpdb,foyzur/gpdb,0x0FFF/gpdb,royc1/gpdb,Chibin/gpdb,cjcjameson/gpdb,xinzweb/gpdb,greenplum-db/gpdb,xinzweb/gpdb,atris/gpdb,yuanzhao/gpdb,greenplum-db/gpdb,rubikloud/gpdb,50wu/gpdb,ahachete/gpdb,tangp3/gpdb,pavanvd/postgres-xl,Chibin/gpdb,ashwinstar/gpdb,kaknikhil/gpdb,edespino/gpdb,pavanvd/postgres-xl,tangp3/gpdb,adam8157/gpdb,lisakowen/gpdb,royc1/gpdb,rubikloud/gpdb,CraigHarris/gpdb,rvs/gpdb,tangp3/gpdb,janebeckman/gpdb,xuegang/gpdb,janebeckman/gpdb,randomtask1155/gpdb,xinzweb/gpdb,chrishajas/gpdb,ashwinstar/gpdb,yazun/postgres-xl,zaksoup/gpdb,yuanzhao/gpdb,yazun/postgres-xl,xuegang/gpdb,cjcjameson/gpdb