diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-29 16:34:48 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-08-29 16:34:48 +0000 |
| commit | 0ffe11abd3a0b2e1b387192213eea58dce12d7d2 (patch) | |
| tree | 8d61852b694125b792d18f98357076ef79191bdd /src/bin | |
| parent | b6b71b85bc45b49005b5aec87cba2c33fc8baf49 (diff) | |
| download | postgresql-0ffe11abd3a0b2e1b387192213eea58dce12d7d2.tar.gz | |
Widen xl_len field of XLogRecord header to 32 bits, so that we'll have
a more tolerable limit on the number of subtransactions or deleted files
in COMMIT and ABORT records. Buy back the extra space by eliminating the
xl_xact_prev field, which isn't being used for anything and is rather
unlikely ever to be used for anything.
This does not force initdb, but you do need to do pg_resetxlog if you
want to upgrade an existing 8.0 installation without initdb.
Diffstat (limited to 'src/bin')
| -rw-r--r-- | src/bin/pg_resetxlog/pg_resetxlog.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/pg_resetxlog/pg_resetxlog.c b/src/bin/pg_resetxlog/pg_resetxlog.c index 936026230e..fdbd527edc 100644 --- a/src/bin/pg_resetxlog/pg_resetxlog.c +++ b/src/bin/pg_resetxlog/pg_resetxlog.c @@ -23,7 +23,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.23 2004/08/29 05:06:54 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.24 2004/08/29 16:34:48 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -645,8 +645,6 @@ WriteEmptyXLOG(void) record = (XLogRecord *) ((char *) page + SizeOfXLogLongPHD); record->xl_prev.xlogid = 0; record->xl_prev.xrecoff = 0; - record->xl_xact_prev.xlogid = 0; - record->xl_xact_prev.xrecoff = 0; record->xl_xid = InvalidTransactionId; record->xl_len = sizeof(CheckPoint); record->xl_info = XLOG_CHECKPOINT_SHUTDOWN; |
