aboutsummaryrefslogtreecommitdiff
path: root/src/include/access/xlog_internal.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-08-29 16:34:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-08-29 16:34:48 +0000
commit0ffe11abd3a0b2e1b387192213eea58dce12d7d2 (patch)
tree8d61852b694125b792d18f98357076ef79191bdd /src/include/access/xlog_internal.h
parentb6b71b85bc45b49005b5aec87cba2c33fc8baf49 (diff)
downloadpostgresql-0ffe11abd3a0b2e1b387192213eea58dce12d7d2.tar.gz
postgresql-0ffe11abd3a0b2e1b387192213eea58dce12d7d2.zip
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/include/access/xlog_internal.h')
-rw-r--r--src/include/access/xlog_internal.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h
index 8ce7fae15b6..70b3f21d986 100644
--- a/src/include/access/xlog_internal.h
+++ b/src/include/access/xlog_internal.h
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/access/xlog_internal.h,v 1.4 2004/08/29 05:06:55 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/access/xlog_internal.h,v 1.5 2004/08/29 16:34:48 tgl Exp $
*/
#ifndef XLOG_INTERNAL_H
#define XLOG_INTERNAL_H
@@ -58,7 +58,7 @@ typedef struct XLogContRecord
/*
* Each page of XLOG file has a header like this:
*/
-#define XLOG_PAGE_MAGIC 0xD05B /* can be used as WAL version indicator */
+#define XLOG_PAGE_MAGIC 0xD05C /* can be used as WAL version indicator */
typedef struct XLogPageHeaderData
{
@@ -203,13 +203,6 @@ typedef XLogLongPageHeaderData *XLogLongPageHeader;
extern char XLogDir[MAXPGPATH];
-/*
- * _INTL_MAXLOGRECSZ: max space needed for a record including header and
- * any backup-block data.
- */
-#define _INTL_MAXLOGRECSZ (SizeOfXLogRecord + MAXLOGRECSZ + \
- XLR_MAX_BKP_BLOCKS * (sizeof(BkpBlock) + BLCKSZ))
-
/*
* Method table for resource managers.