Skip to content

Commit 076f728

Browse files
committed
CloseSequences () at xact commit/abort.
1 parent 6ec8d37 commit 076f728

File tree

1 file changed

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

1 file changed

+5
-2
lines changed

src/backend/access/transam/xact.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.9 1997/03/25 04:10:21 vadim Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.10 1997/04/02 03:38:02 vadim Exp $
1111
*
1212
* NOTES
1313
* Transaction aborts can now occur two ways:
@@ -149,6 +149,7 @@
149149
#include <utils/relcache.h>
150150
#include <miscadmin.h>
151151
#include <commands/async.h>
152+
#include <commands/sequence.h>
152153

153154
/* ----------------
154155
* global variables holding the current transaction state.
@@ -813,7 +814,8 @@ CommitTransaction()
813814
* do commit processing
814815
* ----------------
815816
*/
816-
DestroyTempRels();
817+
CloseSequences ();
818+
DestroyTempRels();
817819
AtEOXact_portals();
818820
RecordTransactionCommit();
819821
RelationPurgeLocalRelation(true);
@@ -878,6 +880,7 @@ AbortTransaction()
878880
* do abort processing
879881
* ----------------
880882
*/
883+
CloseSequences ();
881884
AtEOXact_portals();
882885
RecordTransactionAbort();
883886
RelationPurgeLocalRelation(false);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy