@@ -46,13 +46,16 @@ PostgreSQL documentation
46
46
Creating a database cluster consists of creating the directories in
47
47
which the database data will live, generating the shared catalog
48
48
tables (tables that belong to the whole cluster rather than to any
49
- particular database), and creating the <literal>template1</literal>
50
- and <literal>postgres</literal> databases. When you later create a
51
- new database, everything in the <literal>template1</literal> database is
52
- copied. (Therefore, anything installed in <literal>template1</literal>
53
- is automatically copied into each database created later.)
49
+ particular database), and creating the <literal>postgres</literal>,
50
+ <literal>template1</literal>, and <literal>template0</literal> databases.
54
51
The <literal>postgres</literal> database is a default database meant
55
52
for use by users, utilities and third party applications.
53
+ <literal>template1</literal> and <literal>template0</literal> are
54
+ meant as source databases to be copied by later <command>CREATE
55
+ DATABASE</command> commands. <literal>template0</literal> should never
56
+ be modified, but you can add objects to <literal>template1</literal>,
57
+ which by default will be copied into databases created later. See
58
+ <xref linkend="manage-ag-templatedbs"/> for more details.
56
59
</para>
57
60
58
61
<para>
@@ -88,7 +91,7 @@ PostgreSQL documentation
88
91
collation order (<literal>LC_COLLATE</literal>) and character set classes
89
92
(<literal>LC_CTYPE</literal>, e.g., upper, lower, digit) can be set separately
90
93
for a database when it is created. <command>initdb</command> determines
91
- those settings for the <literal>template1</literal> database , which will
94
+ those settings for the template databases , which will
92
95
serve as the default for all other databases.
93
96
</para>
94
97
@@ -184,9 +187,9 @@ PostgreSQL documentation
184
187
<term><option>--encoding=<replaceable class="parameter">encoding</replaceable></option></term>
185
188
<listitem>
186
189
<para>
187
- Selects the encoding of the template database . This will also
190
+ Selects the encoding of the template databases . This will also
188
191
be the default encoding of any database you create later,
189
- unless you override it there . The default is derived from the locale, or
192
+ unless you override it then . The default is derived from the locale, or
190
193
<literal>SQL_ASCII</literal> if that does not work. The character sets supported by
191
194
the <productname>PostgreSQL</productname> server are described
192
195
in <xref linkend="multibyte-charset-supported"/>.
0 commit comments