Cause initdb to create a third standard database "postgres", which

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 6f7fc0badef55b376f408bd318a8065fd2edf266
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-06-21T04:02:34Z
Releases: 8.1.0
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.

Files

PathChange+/−
contrib/dblink/doc/connection modified +2 −2
contrib/dblink/doc/cursor modified +3 −3
contrib/dblink/doc/misc modified +2 −2
contrib/dblink/doc/query modified +3 −3
contrib/oid2name/oid2name.c modified +1 −1
contrib/reindexdb/reindexdb modified +2 −2
contrib/seg/README.seg modified +1 −1
doc/src/sgml/backup.sgml modified +6 −6
doc/src/sgml/charset.sgml modified +2 −1
doc/src/sgml/client-auth.sgml modified +5 −5
doc/src/sgml/installation.sgml modified +2 −2
doc/src/sgml/libpq.sgml modified +7 −7
doc/src/sgml/manage-ag.sgml modified +20 −11
doc/src/sgml/ref/createlang.sgml modified +4 −1
doc/src/sgml/ref/drop_database.sgml modified +2 −2
doc/src/sgml/ref/initdb.sgml modified +7 −4
doc/src/sgml/ref/pg_dumpall.sgml modified +2 −2
doc/src/sgml/runtime.sgml modified +9 −4
doc/src/sgml/start.sgml modified +3 −3
src/backend/commands/dbcommands.c modified +2 −2
src/bin/initdb/initdb.c modified +43 −6
src/bin/pg_ctl/pg_ctl.c modified +2 −2
src/bin/pg_dump/pg_dumpall.c modified +4 −4
src/bin/psql/startup.c modified +2 −2
src/bin/scripts/clusterdb.c modified +2 −2
src/bin/scripts/createdb.c modified +3 −2
src/bin/scripts/createuser.c modified +2 −2
src/bin/scripts/dropdb.c modified +3 −2
src/bin/scripts/dropuser.c modified +2 −2
src/bin/scripts/vacuumdb.c modified +2 −2
src/include/catalog/catversion.h modified +2 −2
src/interfaces/ecpg/test/testdynalloc.pgc modified +1 −1
src/interfaces/libpq/pg_service.conf.sample modified +3 −3
src/test/bench/create.sh modified +3 −3
src/test/examples/testlibpq2.c modified +2 −2
src/test/examples/testlibpq3.c modified +2 −2
src/test/examples/testlibpq.c modified +2 −2
src/test/regress/pg_regress.sh modified +2 −2