Fix (hack) IndexSelectivity(): use sum(npages)/((nkeys == 1) ? 1 : nkeys + 1) as expected index page estimation for multi-key quals - instead of sum(npages). In old code npages for x > 10 and x < 20 is twice as for x > 10 - cool ?
Fix (hack) IndexSelectivity():
use sum(npages)/((nkeys == 1) ? 1 : nkeys + 1) as expected index page
estimation for multi-key quals - instead of sum(npages).
In old code npages for x > 10 and x < 20 is twice as for x > 10 - cool ?

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