diff options
author | Robert Haas <rhaas@postgresql.org> | 2013-08-01 10:46:19 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2013-08-01 10:46:19 -0400 |
commit | 813fb0315587d32e3b77af1051a0ef517d187763 (patch) | |
tree | 55b7d661a5bdbf67ea0e9f15637ccf917ac2eda9 /src/backend/commands/cluster.c | |
parent | aad2a630b1b163038ea904e16a59e409020f5828 (diff) | |
download | postgresql-813fb0315587d32e3b77af1051a0ef517d187763.tar.gz postgresql-813fb0315587d32e3b77af1051a0ef517d187763.zip |
Remove SnapshotNow and HeapTupleSatisfiesNow.
We now use MVCC catalog scans, and, per discussion, have eliminated
all other remaining uses of SnapshotNow, so that we can now get rid of
it. This will break third-party code which is still using it, which
is intentional, as we want such code to be updated to do things the
new way.
Diffstat (limited to 'src/backend/commands/cluster.c')
-rw-r--r-- | src/backend/commands/cluster.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index 4519c00e223..051b806aa72 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -476,16 +476,6 @@ check_index_is_clusterable(Relation OldHeap, Oid indexOid, bool recheck, LOCKMOD * mark_index_clustered: mark the specified index as the one clustered on * * With indexOid == InvalidOid, will mark all indexes of rel not-clustered. - * - * Note: we do transactional updates of the pg_index rows, which are unsafe - * against concurrent SnapshotNow scans of pg_index. Therefore this is unsafe - * to execute with less than full exclusive lock on the parent table; - * otherwise concurrent executions of RelationGetIndexList could miss indexes. - * - * XXX: Now that we have MVCC catalog access, SnapshotNow scans of pg_index - * shouldn't be common enough to worry about. The above comment needs - * to be updated, and it may be possible to simplify the logic here in other - * ways also. */ void mark_index_clustered(Relation rel, Oid indexOid, bool is_internal) |