pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Unicode case mapping tables and functions.
Date: Thu, 07 Mar 2024 19:18:11 +0000
Message-ID: <E1riJFq-002aP8-QF@gemulon.postgresql.org> (raw)

Unicode case mapping tables and functions.

Implements Unicode simple case mapping, in which all code points map
to exactly one other code point unconditionally.

These tables are generated from UnicodeData.txt, which is already
being used by other infrastructure in src/common/unicode. The tables
are checked into the source tree, so they only need to be regenerated
when we update the Unicode version.

In preparation for the builtin collation provider, and possibly useful
for other callers.

Discussion: https://postgr.es/m/ff4c2f2f9c8fc7ca27c1c24ae37ecaeaeaff6b53.camel%40j-davis.com
Reviewed-by: Peter Eisentraut, Daniel Verite, Jeremy Schneider

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5c40364dd6d9c6a260c8965dffe2e066642d6f79

Modified Files
--------------
src/common/Makefile                               |    1 +
src/common/meson.build                            |    1 +
src/common/unicode/Makefile                       |   15 +-
src/common/unicode/case_test.c                    |  100 +
src/common/unicode/generate-unicode_case_table.pl |  134 +
src/common/unicode/meson.build                    |   31 +
src/common/unicode_case.c                         |  174 ++
src/common/wchar.c                                |    4 +-
src/include/common/unicode_case.h                 |   27 +
src/include/common/unicode_case_table.h           | 3001 +++++++++++++++++++++
src/include/mb/pg_wchar.h                         |   15 +
11 files changed, 3498 insertions(+), 5 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1riJFq-002aP8-QF@gemulon.postgresql.org>
Permalink:  ../E1riJFq-002aP8-QF@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1riJFq-002aP8-QF@gemulon.postgresql.org

 · 

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: jdavis@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Unicode case mapping tables and functions.
  In-Reply-To: <E1riJFq-002aP8-QF@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