]> granicus.if.org Git - postgresql/commit
Some mop-up work for savepoints (nested transactions). Store a small
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Aug 2004 17:32:22 +0000 (17:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 1 Aug 2004 17:32:22 +0000 (17:32 +0000)
commitefcaf1e868d8399d932e68b8b248bcbd089b2d6b
treec6235945f73faab427498dd8662efab5cf2fe5fd
parent9d9cdf82a404f3e2a2d82cefc2c35ded55bb3b2e
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.
23 files changed:
doc/src/sgml/advanced.sgml
doc/src/sgml/ref/allfiles.sgml
doc/src/sgml/ref/begin.sgml
doc/src/sgml/ref/release.sgml [new file with mode: 0644]
doc/src/sgml/ref/rollback.sgml
doc/src/sgml/ref/rollback_to.sgml [new file with mode: 0644]
doc/src/sgml/ref/savepoint.sgml [new file with mode: 0644]
doc/src/sgml/ref/start_transaction.sgml
doc/src/sgml/reference.sgml
src/backend/access/transam/varsup.c
src/backend/access/transam/xact.c
src/backend/catalog/index.c
src/backend/storage/ipc/sinval.c
src/backend/tcop/utility.c
src/backend/utils/init/miscinit.c
src/include/access/htup.h
src/include/access/xact.h
src/include/miscadmin.h
src/include/storage/proc.h
src/include/storage/sinval.h
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_handler.c
src/pl/plpgsql/src/plpgsql.h