]> granicus.if.org Git - postgresql/commit
Cause initdb to create a third standard database "postgres", which
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Jun 2005 04:02:34 +0000 (04:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 21 Jun 2005 04:02:34 +0000 (04:02 +0000)
commit6f7fc0badef55b376f408bd318a8065fd2edf266
treeb86da563c6c8de5c930f00e8f2a7d5a994ba2d18
parentec3a1af0a89a169c100f7157f7c6932234ae5988
Cause initdb to create a third standard database "postgres", which
unlike template0 and template1 does not have any special status in
terms of backend functionality.  However, all external utilities such
as createuser and createdb now connect to "postgres" instead of
template1, and the documentation is changed to encourage people to use
"postgres" instead of template1 as a play area.  This should fix some
longstanding gotchas involving unexpected propagation of database
objects by createdb (when you used template1 without understanding
the implications), as well as ameliorating the problem that CREATE
DATABASE is unhappy if anyone else is connected to template1.
Patch by Dave Page, minor editing by Tom Lane.  All per recent
pghackers discussions.
38 files changed:
contrib/dblink/doc/connection
contrib/dblink/doc/cursor
contrib/dblink/doc/misc
contrib/dblink/doc/query
contrib/oid2name/oid2name.c
contrib/reindexdb/reindexdb
contrib/seg/README.seg
doc/src/sgml/backup.sgml
doc/src/sgml/charset.sgml
doc/src/sgml/client-auth.sgml
doc/src/sgml/installation.sgml
doc/src/sgml/libpq.sgml
doc/src/sgml/manage-ag.sgml
doc/src/sgml/ref/createlang.sgml
doc/src/sgml/ref/drop_database.sgml
doc/src/sgml/ref/initdb.sgml
doc/src/sgml/ref/pg_dumpall.sgml
doc/src/sgml/runtime.sgml
doc/src/sgml/start.sgml
src/backend/commands/dbcommands.c
src/bin/initdb/initdb.c
src/bin/pg_ctl/pg_ctl.c
src/bin/pg_dump/pg_dumpall.c
src/bin/psql/startup.c
src/bin/scripts/clusterdb.c
src/bin/scripts/createdb.c
src/bin/scripts/createuser.c
src/bin/scripts/dropdb.c
src/bin/scripts/dropuser.c
src/bin/scripts/vacuumdb.c
src/include/catalog/catversion.h
src/interfaces/ecpg/test/testdynalloc.pgc
src/interfaces/libpq/pg_service.conf.sample
src/test/bench/create.sh
src/test/examples/testlibpq.c
src/test/examples/testlibpq2.c
src/test/examples/testlibpq3.c
src/test/regress/pg_regress.sh