diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-31 01:16:09 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-31 01:16:09 +0000 |
commit | 267a8f82bf9a05d179fb2c3e156d42b12433d6c0 (patch) | |
tree | ef7a2b3a9e12552a20163bfd3a34880f412d7f05 /src/backend/utils/adt/ruleutils.c | |
parent | 9c2b1a92b5faf0ad9d9a94019e0d36e4c9980942 (diff) | |
download | postgresql-267a8f82bf9a05d179fb2c3e156d42b12433d6c0.tar.gz postgresql-267a8f82bf9a05d179fb2c3e156d42b12433d6c0.zip |
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 ;-).)
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions