diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-02 19:52:37 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-02 19:52:37 +0000 |
commit | cf9f6c8d8e9df28f3fbe1850ca7f042b2c01252e (patch) | |
tree | 199144b9764d3f70aa7f6235c8d896be2d92b1e0 /src | |
parent | b3fb2d6505d6f31c3f7491b6b900cbbe251aec2a (diff) | |
download | postgresql-cf9f6c8d8e9df28f3fbe1850ca7f042b2c01252e.tar.gz postgresql-cf9f6c8d8e9df28f3fbe1850ca7f042b2c01252e.zip |
Extend yesterday's patch making BLCKSZ and RELSEG_SIZE configurable to also
let XLOG_BLCKSZ and XLOG_SEG_SIZE be set via configure. Per a proposal by
Mark Wong, though I thought it better to call the switches after "wal" rather
than "xlog".
Diffstat (limited to 'src')
-rw-r--r-- | src/include/pg_config.h.in | 12 | ||||
-rw-r--r-- | src/include/pg_config_manual.h | 21 |
2 files changed, 13 insertions, 20 deletions
diff --git a/src/include/pg_config.h.in b/src/include/pg_config.h.in index 608e75cd7b6..2314d819659 100644 --- a/src/include/pg_config.h.in +++ b/src/include/pg_config.h.in @@ -747,6 +747,18 @@ first (like Motorola and SPARC, unlike Intel and VAX). */ #undef WORDS_BIGENDIAN +/* Size of a WAL file block. This need have no particular relation to BLCKSZ. + XLOG_BLCKSZ must be a power of 2, and if your system supports O_DIRECT I/O, + XLOG_BLCKSZ must be a multiple of the alignment requirement for direct-I/O + buffers, else direct I/O may fail. Changing XLOG_BLCKSZ requires an initdb. + */ +#undef XLOG_BLCKSZ + +/* XLOG_SEG_SIZE is the size of a single WAL file. This must be a power of 2 + and larger than XLOG_BLCKSZ (preferably, a great deal larger than + XLOG_BLCKSZ). Changing XLOG_SEG_SIZE requires an initdb. */ +#undef XLOG_SEG_SIZE + /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h index 050f5b876c2..b56902d6fab 100644 --- a/src/include/pg_config_manual.h +++ b/src/include/pg_config_manual.h @@ -6,30 +6,11 @@ * for developers. If you edit any of these, be sure to do a *full* * rebuild (and an initdb if noted). * - * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.32 2008/05/02 01:08:27 tgl Exp $ + * $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.33 2008/05/02 19:52:37 tgl Exp $ *------------------------------------------------------------------------ */ /* - * Size of a WAL file block. This need have no particular relation to BLCKSZ. - * XLOG_BLCKSZ must be a power of 2, and if your system supports O_DIRECT I/O, - * XLOG_BLCKSZ must be a multiple of the alignment requirement for direct-I/O - * buffers, else direct I/O may fail. - * - * Changing XLOG_BLCKSZ requires an initdb. - */ -#define XLOG_BLCKSZ 8192 - -/* - * XLOG_SEG_SIZE is the size of a single WAL file. This must be a power of 2 - * and larger than XLOG_BLCKSZ (preferably, a great deal larger than - * XLOG_BLCKSZ). - * - * Changing XLOG_SEG_SIZE requires an initdb. - */ -#define XLOG_SEG_SIZE (16*1024*1024) - -/* * Maximum length for identifiers (e.g. table names, column names, * function names). It must be a multiple of sizeof(int) (typically * 4). |