Don't try to set InvalidXid as page pruning hint
Don't try to set InvalidXid as page pruning hint

If a transaction updates/deletes a tuple just before aborting, and a
concurrent transaction tries to prune the page concurrently, the pruner
may see HeapTupleSatisfiesVacuum return HEAPTUPLE_DELETE_IN_PROGRESS,
but a later call to HeapTupleGetUpdateXid() return InvalidXid.  This
would cause an assertion failure in development builds, but would be
otherwise Mostly Harmless.

Fix by checking whether the updater Xid is valid before trying to apply
it as page prune point.

Reported by Andres in 20131124000203.GA4403@alap2.anarazel.de

adam8157/gpdb,50wu/gpdb,ovr/postgres-xl,techdragon/Postgres-XL,oberstet/postgres-xl,pavanvd/postgres-xl,greenplum-db/gpdb,jmcatamney/gpdb,oberstet/postgres-xl,zeroae/postgres-xl,50wu/gpdb,oberstet/postgres-xl,jmcatamney/gpdb,50wu/gpdb,ashwinstar/gpdb,50wu/gpdb,ovr/postgres-xl,ashwinstar/gpdb,xinzweb/gpdb,zeroae/postgres-xl,adam8157/gpdb,jmcatamney/gpdb,greenplum-db/gpdb,oberstet/postgres-xl,yazun/postgres-xl,lisakowen/gpdb,adam8157/gpdb,xinzweb/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,ashwinstar/gpdb,lisakowen/gpdb,jmcatamney/gpdb,ovr/postgres-xl,greenplum-db/gpdb,lisakowen/gpdb,greenplum-db/gpdb,techdragon/Postgres-XL,adam8157/gpdb,ovr/postgres-xl,pavanvd/postgres-xl,lisakowen/gpdb,ashwinstar/gpdb,zeroae/postgres-xl,lisakowen/gpdb,techdragon/Postgres-XL,ashwinstar/gpdb,xinzweb/gpdb,adam8157/gpdb,yazun/postgres-xl,yazun/postgres-xl,50wu/gpdb,greenplum-db/gpdb,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,techdragon/Postgres-XL,xinzweb/gpdb,lisakowen/gpdb,xinzweb/gpdb,50wu/gpdb,Postgres-XL/Postgres-XL,Postgres-XL/Postgres-XL,techdragon/Postgres-XL,greenplum-db/gpdb,greenplum-db/gpdb,50wu/gpdb,oberstet/postgres-xl,zeroae/postgres-xl,pavanvd/postgres-xl,Postgres-XL/Postgres-XL,greenplum-db/gpdb,jmcatamney/gpdb,Postgres-XL/Postgres-XL,ovr/postgres-xl,ashwinstar/gpdb,ashwinstar/gpdb,yazun/postgres-xl,xinzweb/gpdb,50wu/gpdb,adam8157/gpdb,ashwinstar/gpdb,jmcatamney/gpdb,lisakowen/gpdb,adam8157/gpdb,xinzweb/gpdb,lisakowen/gpdb,adam8157/gpdb,jmcatamney/gpdb,xinzweb/gpdb,zeroae/postgres-xl,yazun/postgres-xl