pgsql/src/bin/initdb initdb.sh

From: Tom Lane <tgl(at)hub(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/bin/initdb initdb.sh
Date: 2001-07-31 01:16:09
Message-ID: 200107310116.f6V1G9V63065@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /home/projects/pgsql/cvsroot
Module name: pgsql
Changes by: tgl(at)hub(dot)org 01/07/30 21:16:09

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

Log message:
Change SQL commands embedded in the initdb script from the style
echo "command" | postgres
to the style
postgres <<EOF
command
EOF
This makes the script more legible (IMHO anyway) by reducing the need
to escape quotes, and allows us to execute successive SQL commands in
a single standalone-backend run, rather than needing to start a new
standalone backend for each command. With all the CREATE VIEWs that
are getting done now, this makes for a rather substantial reduction
in the runtime of initdb. (Some of us do initdb often enough to care
how long it runs ;-).)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2001-07-31 02:02:45 pgsql/src/backend/lib dllist.c
Previous Message Bruce Momjian - CVS 2001-07-30 17:58:26 pgsql/doc TODO