aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/access')
-rw-r--r--src/backend/access/transam/xact.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c
index de3f965b37a..3dab45c2da6 100644
--- a/src/backend/access/transam/xact.c
+++ b/src/backend/access/transam/xact.c
@@ -1906,9 +1906,6 @@ CommitTransaction(void)
/* Clean up the relation cache */
AtEOXact_RelationCache(true);
- /* Clean up the snapshot manager */
- AtEarlyCommit_Snapshot();
-
/*
* Make catalog changes visible to all backends. This has to happen after
* relcache references are dropped (see comments for
@@ -2158,9 +2155,6 @@ PrepareTransaction(void)
/* Clean up the relation cache */
AtEOXact_RelationCache(true);
- /* Clean up the snapshot manager */
- AtEarlyCommit_Snapshot();
-
/* notify doesn't need a postprepare call */
PostPrepare_PgStat();
@@ -2339,7 +2333,6 @@ AbortTransaction(void)
AtEOXact_ComboCid();
AtEOXact_HashTables(false);
AtEOXact_PgStat(false);
- AtEOXact_Snapshot(false);
pgstat_report_xact_timestamp(0);
}
@@ -2368,6 +2361,7 @@ CleanupTransaction(void)
* do abort cleanup processing
*/
AtCleanup_Portals(); /* now safe to release portal memory */
+ AtEOXact_Snapshot(false); /* and release the transaction's snapshots */
CurrentResourceOwner = NULL; /* and resource owner */
if (TopTransactionResourceOwner)