From: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> |
---|---|
To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Allow tailoring of ICU locales with custom rules |
Date: | 2023-01-05 15:15:21 |
Message-ID: | 8ff9e53f-da7e-84f5-a508-9b148ce864f7@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Patch needed a rebase; no functionality changes.
On 14.12.22 10:26, Peter Eisentraut wrote:
> This patch exposes the ICU facility to add custom collation rules to a
> standard collation. This would allow users to customize any ICU
> collation to whatever they want. A very simple example from the
> documentation/tests:
>
> CREATE COLLATION en_custom
> (provider = icu, locale = 'en', rules = '&a < g');
>
> This places "g" after "a" before "b". Details about the syntax can be
> found at
> <https://unicode-org.github.io/icu/userguide/collation/customization/>.
>
> The code is pretty straightforward. It mainly just records these rules
> in the catalog and feeds them to ICU when creating the collator object.
Attachment | Content-Type | Size |
---|---|---|
v2-0001-Allow-tailoring-of-ICU-locales-with-custom-rules.patch | text/plain | 23.4 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2023-01-05 15:28:37 | Re: moving extraUpdatedCols out of RangeTblEntry (into ModifyTable) |
Previous Message | Amit Langote | 2023-01-05 13:53:36 | Re: moving extraUpdatedCols out of RangeTblEntry (into ModifyTable) |