mirror of
https://github.com/postgres/postgres.git
synced 2025-08-24 09:27:52 +03:00
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".
This commit is contained in:
@@ -6,29 +6,10 @@
|
||||
* 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
|
||||
|
Reference in New Issue
Block a user