summaryrefslogtreecommitdiff
path: root/src/bin/initdb
diff options
context:
space:
mode:
authorBruce Momjian2007-02-20 23:49:38 +0000
committerBruce Momjian2007-02-20 23:49:38 +0000
commit272b6ef20d7644f8785a3202c9c4b7793363aede (patch)
treed6bef22b50efadccdba2266d017db78864f894f3 /src/bin/initdb
parent4816b0f45294428d1b9df5d25eb4a84409340272 (diff)
Prevent BLCKSZ < 1024, and have initdb test shared buffers based on the
BLCKSZ value.
Diffstat (limited to 'src/bin/initdb')
-rw-r--r--src/bin/initdb/initdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c
index 3001e325b2a..b0a875234aa 100644
--- a/src/bin/initdb/initdb.c
+++ b/src/bin/initdb/initdb.c
@@ -42,7 +42,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions taken from FreeBSD.
*
- * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.133 2007/02/16 02:10:07 alvherre Exp $
+ * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.134 2007/02/20 23:49:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1208,7 +1208,8 @@ test_config_settings(void)
for (i = 0; i < bufslen; i++)
{
- test_buffs = trial_bufs[i];
+ /* Use same amount of memory, independent of BLCKSZ */
+ test_buffs = (trial_bufs[i] * 8192) / BLCKSZ;
if (test_buffs <= ok_buffers)
{
test_buffs = ok_buffers;