diff options
| author | Tom Lane | 2004-08-01 17:32:22 +0000 |
|---|---|---|
| committer | Tom Lane | 2004-08-01 17:32:22 +0000 |
| commit | efcaf1e868d8399d932e68b8b248bcbd089b2d6b (patch) | |
| tree | c6235945f73faab427498dd8662efab5cf2fe5fd /src/include/storage/sinval.h | |
| parent | 9d9cdf82a404f3e2a2d82cefc2c35ded55bb3b2e (diff) | |
Some mop-up work for savepoints (nested transactions). Store a small
number of active subtransaction XIDs in each backend's PGPROC entry,
and use this to avoid expensive probes into pg_subtrans during
TransactionIdIsInProgress. Extend EOXactCallback API to allow add-on
modules to get control at subxact start/end. (This is deliberately
not compatible with the former API, since any uses of that API probably
need manual review anyway.) Add basic reference documentation for
SAVEPOINT and related commands. Minor other cleanups to check off some
of the open issues for subtransactions.
Alvaro Herrera and Tom Lane.
Diffstat (limited to 'src/include/storage/sinval.h')
| -rw-r--r-- | src/include/storage/sinval.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/storage/sinval.h b/src/include/storage/sinval.h index 84769200504..5ac995a29d4 100644 --- a/src/include/storage/sinval.h +++ b/src/include/storage/sinval.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/sinval.h,v 1.35 2004/06/02 21:29:29 momjian Exp $ + * $PostgreSQL: pgsql/src/include/storage/sinval.h,v 1.36 2004/08/01 17:32:21 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -104,6 +104,9 @@ extern int CountEmptyBackendSlots(void); /* Use "struct PGPROC", not PGPROC, to avoid including proc.h here */ extern struct PGPROC *BackendIdGetProc(BackendId procId); +extern void XidCacheRemoveRunningXids(TransactionId xid, + int nxids, TransactionId *xids); + /* signal handler for catchup events (SIGUSR1) */ extern void CatchupInterruptHandler(SIGNAL_ARGS); |
