Don't allocate memory inside an Assert() iff in a critical section.
Don't allocate memory inside an Assert() iff in a critical section.

HeapTupleHeaderGetCmax() asserts that it is only used if the tuple has
been updated by the current transaction. That check is correct and
sensible but requires allocating memory if xmax is a multixact. When
wal_level is set to logical cmax needs to be included in a wal record
, generated inside a critical section, which can trigger the assertion
added in 4a170ee9e.

Reported-By: Steve Singer

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