OSDN Git Service

This is my -- hopefully sufficiently portable -- attempt at cleaning out
authorBruce Momjian <bruce@momjian.us>
Fri, 17 Dec 1999 01:05:31 +0000 (01:05 +0000)
committerBruce Momjian <bruce@momjian.us>
Fri, 17 Dec 1999 01:05:31 +0000 (01:05 +0000)
commit83bad7c063b6a800db9640d6cb14ef62b9027298
treeef33d28074ba1d7581bfc679e369fe80f8101aa7
parent1b22a8cb033b11721d22b5d5a6c550c571731dae
This is my -- hopefully sufficiently portable -- attempt at cleaning out
initdb. No more obscure dependencies on environment variables or paths.
It
now finds the templates and the right postgres itself (with cmd line
options as fallback). It also no longer depends on $USER (su safe), and
doesn't advertise that --username allows you to install the db as a
different user, since that doesn't work anyway. Also, recovery and
cleanup
on all errors. Consistent options, clearer documentation.

Please take a look at this and adopt it if you feel it's safe enough. I
have simulated all the stupid circumstances I could think of, but you
never know with shell scripts.

Oh yeah, you can give the postgres user a default password now.

--
Peter Eisentraut                  Sernanders väg 10:115
doc/src/sgml/ref/initdb.sgml
src/bin/initdb/initdb.sh
src/include/catalog/pg_shadow.h