mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Prevent BLCKSZ < 1024, and have initdb test shared buffers based on the
BLCKSZ value.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
* 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.24 2007/02/06 09:16:08 petere Exp $
|
||||
* $PostgreSQL: pgsql/src/include/pg_config_manual.h,v 1.25 2007/02/20 23:49:38 momjian Exp $
|
||||
*------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
@ -25,6 +25,10 @@
|
||||
*/
|
||||
#define BLCKSZ 8192
|
||||
|
||||
#if BLCKSZ < 1024
|
||||
#error BLCKSZ must be >= 1024
|
||||
#endif
|
||||
|
||||
/*
|
||||
* RELSEG_SIZE is the maximum number of blocks allowed in one disk
|
||||
* file. Thus, the maximum size of a single file is RELSEG_SIZE *
|
||||
|
Reference in New Issue
Block a user