Fix uninitialized value in pgstatindex leading to invalid values being reported in some cases.  Report and patch from Tatsuhito Kasahara.
Fix uninitialized value in pgstatindex leading to invalid values being
reported in some cases.  Report and patch from Tatsuhito Kasahara.

Also fix a couple of other bugs I noticed in skimming the surrounding code.

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