public inbox for [email protected]  
help / color / mirror / Atom feed
From: Peter Eisentraut <[email protected]>
To: [email protected]
Subject: pgsql: Allow tailoring of ICU locales with custom rules
Date: Wed, 08 Mar 2023 16:03:22 +0000
Message-ID: <[email protected]> (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 <[email protected]>
Reviewed-by: Daniel Verite <[email protected]>
Discussion: https://www.postgresql.org/message-id/flat/[email protected]

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 (3+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: pgsql: Allow tailoring of ICU locales with custom rules
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox