Put back AcceptInvalidationMessages calls in heap_openrv(_extended).
Put back AcceptInvalidationMessages calls in heap_openrv(_extended).

These calls were removed in commit 4240e429d0c2d889d0cda23c618f94e12c13ade7
as part of a general refactoring and improvement of DDL locking.  However,
there's a problem not solved by the rewrite, which is that GRANT/REVOKE
update pg_class.relacl without taking any particular lock on the target
table as such.  If another backend fails to do AcceptInvalidationMessages,
it won't notice a recently-committed change in ACLs.  Bug #7557 from Piotr
Czachur demonstrates that there's at least one code path in 9.2.0 in which
a command fails to do any AcceptInvalidationMessages calls at all, if the
current transaction already holds all the locks it will need.

Since we're hard up against the release deadline for 9.2.1, fix this by
putting back the AcceptInvalidationMessages calls in heap_openrv and
heap_openrv_extended, thereby restoring the historical behavior in this
area.  We ought to look for a more elegant and perhaps more bulletproof
solution, but there's no time for that right now.

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