postgresql/src
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
..
backend Restructure subtransaction handling to reduce resource consumption, 2004-09-16 16:58:44 +00:00
bin New translation 2004-09-14 05:50:33 +00:00
corba make sure the $Id tags are converted to $PostgreSQL as well ... 2003-11-29 22:41:33 +00:00
include Restructure subtransaction handling to reduce resource consumption, 2004-09-16 16:58:44 +00:00
interfaces Translation updates 2004-09-13 12:35:18 +00:00
makefiles Fix shared library linking operations to work properly on all (or at 2004-09-02 23:06:43 +00:00
pl Restructure subtransaction handling to reduce resource consumption, 2004-09-16 16:58:44 +00:00
port Add mention loops over unlink/rename might not be needed. 2004-09-10 09:58:21 +00:00
template Rename irix5 port to irix. 2004-05-19 21:37:43 +00:00
test Redesign query-snapshot timing so that volatile functions in READ COMMITTED 2004-09-13 20:10:13 +00:00
timezone Use _timezone global on Cygwin instead of timezone. 2004-09-08 19:43:12 +00:00
tools Re-add brace removal code but comment it out so we know why we removed 2004-09-12 22:21:30 +00:00
tutorial Pgindent run for 8.0. 2004-08-29 05:07:03 +00:00
utils PostgreSQL extension makefile framework ("pgxs"), by Fabien Coelho, with 2004-07-30 12:26:40 +00:00
DEVELOPERS
Makefile > Please find enclose a submission to fix these problems. 2004-08-20 20:13:10 +00:00
Makefile.global.in > Am Dienstag, 17. August 2004 14:26 schrieb Fabien COELHO: 2004-08-28 22:55:06 +00:00
Makefile.shlib Fix shared library linking operations to work properly on all (or at 2004-09-02 23:06:43 +00:00
bcc32.mak $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
nls-global.mk More locale fixes for pg_ctl. 2004-06-01 03:32:42 +00:00
win32.mak $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00