diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-04-05 03:34:05 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-04-05 03:34:05 +0000 |
commit | 09b5271ebdfe0e2acb03f96edca39dda2ff42362 (patch) | |
tree | 54462a0aafedc44a5ee9e910499daae75a035d6d /src/include/access/xlog_internal.h | |
parent | e6140d90520eca4505d65557ea40369dcf0dec89 (diff) | |
download | postgresql-09b5271ebdfe0e2acb03f96edca39dda2ff42362.tar.gz postgresql-09b5271ebdfe0e2acb03f96edca39dda2ff42362.zip |
Add a field to the first page of each WAL file to indicate the
XLOG_BLCKSZ. This ought to help in preventing configuration mismatch
problems if anyone tries to ship PITR files between servers compiled
with different XLOG_BLCKSZ settings. Simon Riggs
Diffstat (limited to 'src/include/access/xlog_internal.h')
-rw-r--r-- | src/include/access/xlog_internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/access/xlog_internal.h b/src/include/access/xlog_internal.h index 6fbda53f39e..430f57efa89 100644 --- a/src/include/access/xlog_internal.h +++ b/src/include/access/xlog_internal.h @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/access/xlog_internal.h,v 1.12 2006/04/03 23:35:04 tgl Exp $ + * $PostgreSQL: pgsql/src/include/access/xlog_internal.h,v 1.13 2006/04/05 03:34:05 tgl Exp $ */ #ifndef XLOG_INTERNAL_H #define XLOG_INTERNAL_H @@ -69,7 +69,7 @@ typedef struct XLogContRecord /* * Each page of XLOG file has a header like this: */ -#define XLOG_PAGE_MAGIC 0xD05D /* can be used as WAL version indicator */ +#define XLOG_PAGE_MAGIC 0xD05E /* can be used as WAL version indicator */ typedef struct XLogPageHeaderData { @@ -93,6 +93,7 @@ typedef struct XLogLongPageHeaderData XLogPageHeaderData std; /* standard header fields */ uint64 xlp_sysid; /* system identifier from pg_control */ uint32 xlp_seg_size; /* just as a cross-check */ + uint32 xlp_xlog_blcksz; /* just as a cross-check */ } XLogLongPageHeaderData; #define SizeOfXLogLongPHD MAXALIGN(sizeof(XLogLongPageHeaderData)) |