Content-Length: 273069 | pFad | http://github.com/postgrespro/postgres_cluster/commit/0625fd2418ceff8b56ac97b549d1732f1462a19d

FA Fix restoring save point context · postgrespro/postgres_cluster@0625fd2 · GitHub
Skip to content

Commit 0625fd2

Browse files
committed
Fix restoring save point context
1 parent b518b35 commit 0625fd2

File tree

1 file changed

+2
-1
lines changed
  • src/backend/access/transam

1 file changed

+2
-1
lines changed

src/backend/access/transam/xact.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4531,6 +4531,8 @@ RollbackAndReleaseCurrentSubTransaction(void)
45314531
CleanupSubTransaction();
45324532

45334533
s = CurrentTransactionState; /* changed by pop */
4534+
TM->RestoreSavepointContext(s->savepointContext);
4535+
45344536
AssertState(s->blockState == TBLOCK_SUBINPROGRESS ||
45354537
s->blockState == TBLOCK_INPROGRESS ||
45364538
s->blockState == TBLOCK_STARTED);
@@ -5118,7 +5120,6 @@ PopTransaction(void)
51185120

51195121
TM->ReleaseSavepointContext(s->savepointContext);
51205122
CurrentTransactionState = s->parent;
5121-
TM->RestoreSavepointContext(CurrentTransactionState->savepointContext);
51225123

51235124
/* Let's just make sure CurTransactionContext is good */
51245125
CurTransactionContext = s->parent->curTransactionContext;

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/0625fd2418ceff8b56ac97b549d1732f1462a19d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy