mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
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.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/start.sgml,v 1.38 2005/01/08 01:44:08 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/start.sgml,v 1.39 2005/06/21 04:02:30 tgl Exp $
|
||||
-->
|
||||
|
||||
<chapter id="tutorial-start">
|
||||
@@ -183,7 +183,7 @@ createdb: command not found
|
||||
<para>
|
||||
Another response could be this:
|
||||
<screen>
|
||||
createdb: could not connect to database template1: could not connect to server:
|
||||
createdb: could not connect to database postgres: could not connect to server:
|
||||
No such file or directory
|
||||
Is the server running locally and accepting
|
||||
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
|
||||
@@ -196,7 +196,7 @@ No such file or directory
|
||||
<para>
|
||||
Another response could be this:
|
||||
<screen>
|
||||
createdb: could not connect to database template1: FATAL: user "joe" does not
|
||||
createdb: could not connect to database postgres: FATAL: user "joe" does not
|
||||
exist
|
||||
</screen>
|
||||
where your own login name is mentioned. This will happen if the
|
||||
|
Reference in New Issue
Block a user