summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/pg_service.conf.sample
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-06-21 04:02:34 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-06-21 04:02:34 +0000
commit6f7fc0badef55b376f408bd318a8065fd2edf266 (patch)
treeb86da563c6c8de5c930f00e8f2a7d5a994ba2d18 /src/interfaces/libpq/pg_service.conf.sample
parentec3a1af0a89a169c100f7157f7c6932234ae5988 (diff)
downloadpostgresql-6f7fc0badef55b376f408bd318a8065fd2edf266.tar.gz
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.
Diffstat (limited to 'src/interfaces/libpq/pg_service.conf.sample')
-rw-r--r--src/interfaces/libpq/pg_service.conf.sample6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/libpq/pg_service.conf.sample b/src/interfaces/libpq/pg_service.conf.sample
index e15d79b91e..8a22fda95a 100644
--- a/src/interfaces/libpq/pg_service.conf.sample
+++ b/src/interfaces/libpq/pg_service.conf.sample
@@ -4,13 +4,13 @@
# A service is a set of named connection parameters. You may specify
# multiple services in this file. Each starts with a service name in
# brackets. Subsequent lines have connection configuration parameters of
-# the pattern "param=value". A sample configuration for template1 is
+# the pattern "param=value". A sample configuration for postgres is
# included in this file. Lines beginning with '#' are comments.
#
# Copy this to your sysconf directory (typically /usr/local/pgsql/etc) and
# rename it pg_service.conf.
#
#
-#[template1]
-#dbname=template1
+#[postgres]
+#dbname=postgres
#user=postgres