]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Clarify documentation for the initcap function
authorAlexander Korotkov <akorotkov@postgresql.org>
Tue, 29 Jul 2025 07:41:13 +0000 (10:41 +0300)
committerAlexander Korotkov <akorotkov@postgresql.org>
Tue, 29 Jul 2025 07:43:43 +0000 (10:43 +0300)
This commit documents differences in the definition of word separators for
the initcap function between libc and ICU locale providers.
Backpatch to all supported branches.

Discussion: https://postgr.es/m/804cc10ef95d4d3b298e76b181fd9437%40postgrespro.ru
Author: Oleg Tselebrovskiy <o.tselebrovskiy@postgrespro.ru>
Backpatch-through: 13

doc/src/sgml/func.sgml

index 11371326a291ebb514f9eaafdebb526810ea199a..3b6ef6054771ccfca2edc95031095c262dd04749 100644 (file)
@@ -2926,8 +2926,11 @@ repeat('Pg', 4) <returnvalue>PgPgPgPg</returnvalue>
        </para>
        <para>
         Converts the first letter of each word to upper case and the
-        rest to lower case. Words are sequences of alphanumeric
-        characters separated by non-alphanumeric characters.
+        rest to lower case. When using the <literal>libc</literal> locale
+        provider, words are sequences of alphanumeric characters separated
+        by non-alphanumeric characters; when using the ICU locale provider,
+        words are separated according to
+        <ulink url="https://www.unicode.org/reports/tr29/#Word_Boundaries">Unicode Standard Annex #29</ulink>.
        </para>
        <para>
         <literal>initcap('hi THOMAS')</literal>