pgrowlocks: Use GetActiveSnapshot() rather than SnapshotNow.
pgrowlocks: Use GetActiveSnapshot() rather than SnapshotNow.

Per discussion, it's desirable to eliminate all remaining uses of
SnapshotNow, because it has unpleasant semantics: race conditions
can result in seeing multiple versions of a concurrently updated
row, or none at all.  By using GetActiveSnapshot() here, callers
will see exactly those rows that would have been visible if the
invoking query had scanned the table using, for example, a SELECT
statement.

This is slightly different from the old behavior, because commits
that happen concurrently with the scan will not affect the results.
In REPEATABLE READ or SERIALIZABLE modes, where transaction
snapshots are used, commits that have happened since the start of
the transaction will also not affect the results.  It is hoped
that this minor incompatibility will be thought an improvement,
or at least no worse than what we did before.

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