Increase the maximum initdb-configured value for shared_buffers to 128MB.
authorRobert Haas <rhaas@postgresql.org>
Wed, 4 Jul 2012 19:52:35 +0000 (15:52 -0400)
committerRobert Haas <rhaas@postgresql.org>
Wed, 4 Jul 2012 19:55:21 +0000 (15:55 -0400)
The old value of 32MB has been around for a very long time, and in the
meantime typical system memories have become vastly larger.  Also, now
that we no longer depend on being able to fit the entirety of our
shared memory segment into the system's limit on System V shared
memory, there's a much better chance of the higher limit actually
proving productive.

Per recent discussion on pgsql-hackers.

src/bin/initdb/initdb.c

index edd5d71eb821661e9730c5228c8c9bbbf4b211e8..52aedca459c2001bb490c2b77e9e8f88a7a2f692 100644 (file)
@@ -895,7 +895,7 @@ test_config_settings(void)
        100, 50, 40, 30, 20, 10
    };
    static const int trial_bufs[] = {
-       4096, 3584, 3072, 2560, 2048, 1536,
+       16384, 8192, 4096, 3584, 3072, 2560, 2048, 1536,
        1000, 900, 800, 700, 600, 500,
        400, 300, 200, 100, 50
    };