]> granicus.if.org Git - postgresql/commit
Clean up initdb's code for selecting max_connections and shared_buffers
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 31 Dec 2005 23:50:59 +0000 (23:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 31 Dec 2005 23:50:59 +0000 (23:50 +0000)
commitbcb26d74cb5cec962a612bf8f385981b3a928217
treea49f198c1ce98bd7087ccf1c3efac7d37789b237
parentdbf53e6345b17be375d35043b6a0e64276f87b75
Clean up initdb's code for selecting max_connections and shared_buffers
a little bit, and set the minimum buffers-per-connection ratio to 10 not
5.  I folded the two test routines into one to counteract the illusion
that the tests can be twiddled independently, and added some documentation
pointing out the necessary connection between the sets of values tested.
Fixes strange choices of parameters that I noticed CVS tip making on
Darwin with Apple's undersized default SHMMAX.
src/bin/initdb/initdb.c