Fix thinko in hash cost estimation: average frequency should be computed from total number of distinct values in whole relation, not # distinct values we expect to have after restriction clauses are applied.
Fix thinko in hash cost estimation: average frequency
should be computed from total number of distinct values in whole
relation, not # distinct values we expect to have after restriction
clauses are applied.

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