diff options
author | Jeff Davis <jdavis@postgresql.org> | 2024-03-18 11:56:45 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2024-03-18 11:58:13 -0700 |
commit | 846311051e8fdca4c9db83b2b09425759a8b102d (patch) | |
tree | a6b47781bb156109b4048c773b7ad30be9d9a96b /doc/src | |
parent | 66ab9371a23320cf608e68e8e5d2811992941bea (diff) | |
download | postgresql-846311051e8fdca4c9db83b2b09425759a8b102d.tar.gz postgresql-846311051e8fdca4c9db83b2b09425759a8b102d.zip |
Address more review comments on commit 2d819a08a1.
Based on comments from Peter Eisentraut.
* Document CREATE DATABASE ... BUILTIN_LOCALE.
* Determine required encoding based on locale name for CREATE
COLLATION. Use -1 for "C" (requires catversion bump).
* initdb output fixups.
* Make ctype_is_c a constant true for now.
* Fixups to ICU 010_create_database.pl test.
Discussion: https://postgr.es/m/4135cf11-206d-40ed-96c0-9363c1232379@eisentraut.org
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/create_database.sgml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/create_database.sgml b/doc/src/sgml/ref/create_database.sgml index 6c1fd95602d..a839a8568cb 100644 --- a/doc/src/sgml/ref/create_database.sgml +++ b/doc/src/sgml/ref/create_database.sgml @@ -29,6 +29,7 @@ CREATE DATABASE <replaceable class="parameter">name</replaceable> [ LOCALE [=] <replaceable class="parameter">locale</replaceable> ] [ LC_COLLATE [=] <replaceable class="parameter">lc_collate</replaceable> ] [ LC_CTYPE [=] <replaceable class="parameter">lc_ctype</replaceable> ] + [ BUILTIN_LOCALE [=] <replaceable class="parameter">builtin_locale</replaceable> ] [ ICU_LOCALE [=] <replaceable class="parameter">icu_locale</replaceable> ] [ ICU_RULES [=] <replaceable class="parameter">icu_rules</replaceable> ] [ LOCALE_PROVIDER [=] <replaceable class="parameter">locale_provider</replaceable> ] @@ -216,6 +217,23 @@ CREATE DATABASE <replaceable class="parameter">name</replaceable> </listitem> </varlistentry> + <varlistentry id="create-database-builtin-locale"> + <term><replaceable class="parameter">builtin_locale</replaceable></term> + <listitem> + <para> + Specifies the builtin provider locale for the database default + collation order and character classification, overriding the setting + <xref linkend="create-database-locale"/>. The <link + linkend="create-database-locale-provider">locale provider</link> must + be <literal>builtin</literal>. The default is the setting of <xref + linkend="create-database-locale"/> if specified; otherwise the same + setting as the template database. Currently, the only available + locale for the <literal>builtin</literal> provider is + <literal>C</literal>. + </para> + </listitem> + </varlistentry> + <varlistentry id="create-database-icu-locale"> <term><replaceable class="parameter">icu_locale</replaceable></term> <listitem> |