diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-07-01 00:52:04 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-07-01 00:52:04 +0000 |
commit | 573a71a5da70d6e2503c8f53e3b4f26b3b6d738d (patch) | |
tree | 070f677b0043631518f83ce84ff201bf8fda700f /src/backend/access/transam/xlog.c | |
parent | 4c9aa572fa2ee60e8ac557b866eccc7310df0a09 (diff) | |
download | postgresql-573a71a5da70d6e2503c8f53e3b4f26b3b6d738d.tar.gz postgresql-573a71a5da70d6e2503c8f53e3b4f26b3b6d738d.zip |
Nested transactions. There is still much left to do, especially on the
performance front, but with feature freeze upon us I think it's time to
drive a stake in the ground and say that this will be in 7.5.
Alvaro Herrera, with some help from Tom Lane.
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index f1205640615..a6f53ba79f1 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -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/backend/access/transam/xlog.c,v 1.146 2004/06/03 02:08:00 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.147 2004/07/01 00:49:50 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -22,6 +22,7 @@ #include <sys/time.h> #include "access/clog.h" +#include "access/subtrans.h" #include "access/transam.h" #include "access/xact.h" #include "access/xlog.h" @@ -2755,6 +2756,7 @@ BootStrapXLOG(void) /* Bootstrap the commit log, too */ BootStrapCLOG(); + BootStrapSUBTRANS(); } static char * @@ -3154,6 +3156,7 @@ StartupXLOG(void) /* Start up the commit log, too */ StartupCLOG(); + StartupSUBTRANS(); ereport(LOG, (errmsg("database system is ready"))); @@ -3292,6 +3295,7 @@ ShutdownXLOG(int code, Datum arg) CritSectionCount++; CreateCheckPoint(true, true); ShutdownCLOG(); + ShutdownSUBTRANS(); CritSectionCount--; ereport(LOG, @@ -3467,6 +3471,7 @@ CreateCheckPoint(bool shutdown, bool force) END_CRIT_SECTION(); CheckPointCLOG(); + CheckPointSUBTRANS(); FlushBufferPool(); START_CRIT_SECTION(); |