Thread: pgsql-server/src/bin/initdb initdb.sh

pgsql-server/src/bin/initdb initdb.sh

From
tgl@svr1.postgresql.org (Tom Lane)
Date:
CVSROOT:    /cvsroot
Module name:    pgsql-server
Changes by:    tgl@svr1.postgresql.org    03/10/13 18:06:44

Modified files:
    src/bin/initdb : initdb.sh

Log message:
    Determine max_connections first, then see how large shared_buffers can
    be made, to avoid corner cases where max_connections ends up unreasonably
    small because shared_buffers is hogging too much shmem space.  Per pghackers
    discussion about a week ago.  Also, fix the copy-newlines problem in a
    more robust way, by using COPY FROM filename instead of COPY FROM STDIN;
    per a suggestion from Peter.