diff options
author | Peter Eisentraut | 2023-03-10 12:35:00 +0000 |
---|---|---|
committer | Peter Eisentraut | 2023-03-10 12:35:43 +0000 |
commit | 0d21d4b9bc1f9da9dda29e5c4db0c6dd45408aaa (patch) | |
tree | 421b155ad9135a9d477832a559e6b20dfb8ba14e /doc | |
parent | 6ad5793a491a2e70e5610988a13f31f43c8946ad (diff) |
Add standard collation UNICODE
This adds a new predefined collation named UNICODE, which sorts by the
default Unicode collation algorithm specifications, per SQL standard.
This only works if ICU support is built.
Reviewed-by: Jeff Davis <pgsql@j-davis.com>
Discussion: https://www.postgresql.org/message-id/flat/1293e382-2093-a2bf-a397-c04e8f83d3c2@enterprisedb.com
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/sgml/charset.sgml | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/doc/src/sgml/charset.sgml b/doc/src/sgml/charset.sgml index 3032392b80..12fabb7372 100644 --- a/doc/src/sgml/charset.sgml +++ b/doc/src/sgml/charset.sgml @@ -659,9 +659,34 @@ SELECT * FROM test1 ORDER BY a || b COLLATE "fr_FR"; </para> <para> - Additionally, the SQL standard collation name <literal>ucs_basic</literal> - is available for encoding <literal>UTF8</literal>. It is equivalent - to <literal>C</literal> and sorts by Unicode code point. + Additionally, two SQL standard collation names are available: + + <variablelist> + <varlistentry> + <term><literal>unicode</literal></term> + <listitem> + <para> + This collation sorts using the Unicode Collation Algorithm with the + Default Unicode Collation Element Table. It is available in all + encodings. ICU support is required to use this collation. (This + collation has the same behavior as the ICU root locale; see <xref + linkend="collation-managing-predefined-icu-und-x-icu"/>.) + </para> + </listitem> + </varlistentry> + + <varlistentry> + <term><literal>ucs_basic</literal></term> + <listitem> + <para> + This collation sorts by Unicode code point. It is only available for + encoding <literal>UTF8</literal>. (This collation has the same + behavior as the libc locale specification <literal>C</literal> in + <literal>UTF8</literal> encoding.) + </para> + </listitem> + </varlistentry> + </variablelist> </para> </sect3> |