mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Allow tailoring of ICU locales with custom rules
This exposes the ICU facility to add custom collation rules to a standard collation. New options are added to CREATE COLLATION, CREATE DATABASE, createdb, and initdb to set the rules. Reviewed-by: Laurenz Albe <laurenz.albe@cybertec.at> Reviewed-by: Daniel Verite <daniel@manitou-mail.org> Discussion: https://www.postgresql.org/message-id/flat/821c71a4-6ef0-d366-9acf-bb8e367f739f@enterprisedb.com
This commit is contained in:
@@ -30,6 +30,7 @@ CREATE DATABASE <replaceable class="parameter">name</replaceable>
|
||||
[ LC_COLLATE [=] <replaceable class="parameter">lc_collate</replaceable> ]
|
||||
[ LC_CTYPE [=] <replaceable class="parameter">lc_ctype</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> ]
|
||||
[ COLLATION_VERSION = <replaceable>collation_version</replaceable> ]
|
||||
[ TABLESPACE [=] <replaceable class="parameter">tablespace_name</replaceable> ]
|
||||
@@ -192,6 +193,19 @@ CREATE DATABASE <replaceable class="parameter">name</replaceable>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="create-database-icu-rules">
|
||||
<term><replaceable class="parameter">icu_rules</replaceable></term>
|
||||
<listitem>
|
||||
<para>
|
||||
Specifies additional collation rules to customize the behavior of the
|
||||
default collation of this database. This is supported for ICU only.
|
||||
See <ulink
|
||||
url="https://unicode-org.github.io/icu/userguide/collation/customization/"/>
|
||||
for details on the syntax.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry id="create-database-locale-provider">
|
||||
<term><replaceable>locale_provider</replaceable></term>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user