Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit a8a4482

Browse files
committed
Correct docs for the default locale_provider of a new database.
If the locale provider is not specified, it defaults to be the same as the template from which it was created. Previously, the documentation said the default was libc. Also adjust wording of CREATE DATABASE and CREATE COLLATION docs to be definite that there are exactly two possible collation providers. Discussion: https://postgr.es/m/6befdaada61c046b67f3b269f7fa6f069a35803e.camel%40j-davis.com Reviewed-by: Nathan Bossart
1 parent e9a20e4 commit a8a4482

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

doc/src/sgml/ref/create_collation.sgml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ CREATE COLLATION [ IF NOT EXISTS ] <replaceable>name</replaceable> FROM <replace
119119
<listitem>
120120
<para>
121121
Specifies the provider to use for locale services associated with this
122-
collation. Possible values
123-
are: <literal>icu</literal>,<indexterm><primary>ICU</primary></indexterm>
124-
<literal>libc</literal>.
125-
<literal>libc</literal> is the default.
126-
The available choices depend on the operating system and build options.
122+
collation. Possible values are
123+
<literal>icu</literal><indexterm><primary>ICU</primary></indexterm>
124+
(if the server was built with ICU support) or <literal>libc</literal>.
125+
<literal>libc</literal> is the default. See <xref
126+
linkend="locale-providers"/> for details.
127127
</para>
128128
</listitem>
129129
</varlistentry>

doc/src/sgml/ref/create_database.sgml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,12 @@ CREATE DATABASE <replaceable class="parameter">name</replaceable>
198198
<listitem>
199199
<para>
200200
Specifies the provider to use for the default collation in this
201-
database. Possible values are:
202-
<literal>icu</literal>,<indexterm><primary>ICU</primary></indexterm>
203-
<literal>libc</literal>. <literal>libc</literal> is the default. The
204-
available choices depend on the operating system and build options.
201+
database. Possible values are
202+
<literal>icu</literal><indexterm><primary>ICU</primary></indexterm>
203+
(if the server was built with ICU support) or <literal>libc</literal>.
204+
By default, the provider is the same as that of the <xref
205+
linkend="create-database-template"/>. See <xref
206+
linkend="locale-providers"/> for details.
205207
</para>
206208
</listitem>
207209
</varlistentry>

0 commit comments

Comments
 (0)