Fix VACUUM so that it can use pages as move targets even if they do not have any newly-dead tuples on them.  This is a longstanding deficiency that prevents VACUUM from compacting a file as much as one would expect. Change requires fixing repair_frag to not assume that fraged_pages is a subset of vacuum_pages. Also make some further cleanups of places that assumed page numbers fit in int and tuple counts fit in uint32.
Fix VACUUM so that it can use pages as move targets even if they do not
have any newly-dead tuples on them.  This is a longstanding deficiency
that prevents VACUUM from compacting a file as much as one would expect.
Change requires fixing repair_frag to not assume that fraged_pages is
a subset of vacuum_pages.
Also make some further cleanups of places that assumed page numbers fit
in int and tuple counts fit in uint32.

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