pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow tailoring of ICU locales with custom rules
Date: Wed, 08 Mar 2023 16:03:22 +0000
Message-ID: <E1pZwGA-002X1G-4w@gemulon.postgresql.org> (raw )
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/30a53b792959b36f07200dae246067b3adbcc0b9
Modified Files
--------------
doc/src/sgml/catalogs.sgml | 18 +++++
doc/src/sgml/ref/create_collation.sgml | 22 ++++++
doc/src/sgml/ref/create_database.sgml | 14 ++++
doc/src/sgml/ref/createdb.sgml | 10 +++
doc/src/sgml/ref/initdb.sgml | 10 +++
src/backend/catalog/pg_collation.c | 5 ++
src/backend/commands/collationcmds.c | 23 +++++-
src/backend/commands/dbcommands.c | 51 ++++++++++++-
src/backend/utils/adt/pg_locale.c | 41 +++++++++-
src/backend/utils/init/postinit.c | 11 ++-
src/bin/initdb/initdb.c | 15 +++-
src/bin/pg_dump/pg_dump.c | 37 +++++++++
src/bin/psql/describe.c | 100 ++++++++++++++++---------
src/bin/scripts/createdb.c | 11 +++
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_collation.h | 2 +
src/include/catalog/pg_database.dat | 2 +-
src/include/catalog/pg_database.h | 3 +
src/include/utils/pg_locale.h | 1 +
src/test/regress/expected/collate.icu.utf8.out | 30 ++++++++
src/test/regress/expected/psql.out | 18 ++---
src/test/regress/sql/collate.icu.utf8.sql | 13 ++++
22 files changed, 380 insertions(+), 59 deletions(-)
view thread (7+ messages) latest in thread
Message-ID: <E1pZwGA-002X1G-4w@gemulon.postgresql.org>
Permalink: ../E1pZwGA-002X1G-4w@gemulon.postgresql.org/
Also on: postgresql.org/message-id/E1pZwGA-002X1G-4w@gemulon.postgresql.org
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Allow tailoring of ICU locales with custom rules
In-Reply-To: <E1pZwGA-002X1G-4w@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox