diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-04-03 23:35:05 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-04-03 23:35:05 +0000 |
| commit | eaef111396ef7e70c88979c7a82f6a8f918d9651 (patch) | |
| tree | 4ed22c6becb93bacba5e0700637a74d39928cbd9 /src/include/catalog | |
| parent | c8c864c26148bc8b8f48c228152e657102f7cb2b (diff) | |
| download | postgresql-eaef111396ef7e70c88979c7a82f6a8f918d9651.tar.gz | |
Define a separately configurable XLOG_BLCKSZ symbol for the page size
used within WAL files. Historically this was the same as the data file
BLCKSZ, but there's no necessary connection, and it's possible that
performance gains might ensue from reducing XLOG_BLCKSZ. In any case
distinguishing two symbols should improve code clarity. This commit
does not actually change the page size, only provide the infrastructure
to make it possible to do so. initdb forced because of addition of a
field to pg_control.
Mark Wong, with some help from Simon Riggs and Tom Lane.
Diffstat (limited to 'src/include/catalog')
| -rw-r--r-- | src/include/catalog/pg_control.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/catalog/pg_control.h b/src/include/catalog/pg_control.h index a1b123bd37..ba54fdc8e6 100644 --- a/src/include/catalog/pg_control.h +++ b/src/include/catalog/pg_control.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.27 2006/03/05 15:58:54 momjian Exp $ + * $PostgreSQL: pgsql/src/include/catalog/pg_control.h,v 1.28 2006/04/03 23:35:05 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -22,7 +22,7 @@ /* Version identifier for this pg_control format */ -#define PG_CONTROL_VERSION 812 +#define PG_CONTROL_VERSION 820 /* * Body of CheckPoint XLOG records. This is declared here because we keep @@ -126,9 +126,10 @@ typedef struct ControlFileData * This data is used to make sure that configuration of this database is * compatible with the backend executable. */ - uint32 blcksz; /* block size for this DB */ + uint32 blcksz; /* data block size for this DB */ uint32 relseg_size; /* blocks per segment of large relation */ + uint32 xlog_blcksz; /* block size within WAL files */ uint32 xlog_seg_size; /* size of each WAL segment */ uint32 nameDataLen; /* catalog name field width */ |
