diff options
author | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-04-02 03:38:02 +0000 |
---|---|---|
committer | Vadim B. Mikheev <vadim4o@yahoo.com> | 1997-04-02 03:38:02 +0000 |
commit | 076f7286bed461fbf90487e39d0d74f76d7cb4c0 (patch) | |
tree | 7b277c18bedd269f0f141b7c82bcfa8d6c58a825 /src | |
parent | 6ec8d375f5a68e706a05624274b5fa3d1c460784 (diff) | |
download | postgresql-076f7286bed461fbf90487e39d0d74f76d7cb4c0.tar.gz postgresql-076f7286bed461fbf90487e39d0d74f76d7cb4c0.zip |
CloseSequences () at xact commit/abort.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/access/transam/xact.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 5cf95fbaf6b..a983e23ba92 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.9 1997/03/25 04:10:21 vadim Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.10 1997/04/02 03:38:02 vadim Exp $ * * NOTES * Transaction aborts can now occur two ways: @@ -149,6 +149,7 @@ #include <utils/relcache.h> #include <miscadmin.h> #include <commands/async.h> +#include <commands/sequence.h> /* ---------------- * global variables holding the current transaction state. @@ -813,7 +814,8 @@ CommitTransaction() * do commit processing * ---------------- */ - DestroyTempRels(); + CloseSequences (); + DestroyTempRels(); AtEOXact_portals(); RecordTransactionCommit(); RelationPurgeLocalRelation(true); @@ -878,6 +880,7 @@ AbortTransaction() * do abort processing * ---------------- */ + CloseSequences (); AtEOXact_portals(); RecordTransactionAbort(); RelationPurgeLocalRelation(false); |