postgresql/src/include/utils
Tom Lane 8f9f198603 Restructure subtransaction handling to reduce resource consumption,
as per recent discussions.  Invent SubTransactionIds that are managed like
CommandIds (ie, counter is reset at start of each top transaction), and
use these instead of TransactionIds to keep track of subtransaction status
in those modules that need it.  This means that a subtransaction does not
need an XID unless it actually inserts/modifies rows in the database.
Accordingly, don't assign it an XID nor take a lock on the XID until it
tries to do that.  This saves a lot of overhead for subtransactions that
are only used for error recovery (eg plpgsql exceptions).  Also, arrange
to release a subtransaction's XID lock as soon as the subtransaction
exits, in both the commit and abort cases.  This avoids holding many
unique locks after a long series of subtransactions.  The price is some
additional overhead in XactLockTableWait, but that seems acceptable.
Finally, restructure the state machine in xact.c to have a more orthogonal
set of states for subtransactions.
2004-09-16 16:58:44 +00:00
..
acl.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
array.h Fix a read of uninitialized memory in array_out(). Perform some minor 2004-09-16 03:15:54 +00:00
ascii.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
builtins.h Another pgindent run with lib typedefs added. 2004-08-30 02:54:42 +00:00
cash.h Create a 'type cache' that keeps track of the data needed for any particular 2003-08-17 19:58:06 +00:00
catcache.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
date.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
datetime.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
datum.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
dynahash.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
dynamic_loader.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
elog.h On further consideration, there's another problem here: the existing 2004-09-05 03:42:13 +00:00
errcodes.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
fmgrtab.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
formatting.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
geo_decls.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
guc_tables.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
guc.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
help_config.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
hsearch.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
inet.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
int8.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
inval.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
logtape.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
lsyscache.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
memutils.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
nabstime.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
numeric.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
palloc.h Fix palloc call from /port for Cygwin. 2004-09-10 15:23:51 +00:00
pg_crc.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
pg_locale.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
pg_lzcompress.h $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
portal.h Restructure subtransaction handling to reduce resource consumption, 2004-09-16 16:58:44 +00:00
ps_status.h Move responsibility for copying argv[] array into ps_status.c, where it 2004-02-22 21:26:55 +00:00
rel.h Restructure subtransaction handling to reduce resource consumption, 2004-09-16 16:58:44 +00:00
relcache.h Restructure subtransaction handling to reduce resource consumption, 2004-09-16 16:58:44 +00:00
resowner.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
selfuncs.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
syscache.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
timestamp.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
tqual.h Redesign query-snapshot timing so that volatile functions in READ COMMITTED 2004-09-13 20:10:13 +00:00
tuplesort.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
tuplestore.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00
typcache.h Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
varbit.h Update copyright to 2004. 2004-08-29 04:13:13 +00:00