TransactionIdIsInProgress can skip scanning the ProcArray if the target XID is later than latestCompletedXid, per Florian Pflug.  Also some minor improvements in the XIDCACHE_DEBUG code --- make sure each call of TransactionIdIsInProgress is counted one way or another.
TransactionIdIsInProgress can skip scanning the ProcArray if the target XID is
later than latestCompletedXid, per Florian Pflug.  Also some minor
improvements in the XIDCACHE_DEBUG code --- make sure each call of
TransactionIdIsInProgress is counted one way or another.

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