pgsql: Control collation behavior with a method table.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Control collation behavior with a method table.
Date: 2025-01-08 22:38:24
Message-ID: E1tVegy-000Z0Y-Jd@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Control collation behavior with a method table.

Previously, behavior branched based on the provider. A method table is
less error-prone and more flexible.

The ctype behavior will be addressed in an upcoming commit.

Reviewed-by: Andreas Karlsson
Discussion: https://postgr.es/m/2830211e1b6e6a2e26d845780b03e125281ea17b.camel%40j-davis.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/a2f17f004d229f69a32cfa80904b95edcbc68f95

Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 123 ++++-----------------------
src/backend/utils/adt/pg_locale_icu.c | 147 +++++++++++++++++++--------------
src/backend/utils/adt/pg_locale_libc.c | 53 ++++++++++--
src/include/utils/pg_locale.h | 33 ++++++++
4 files changed, 180 insertions(+), 176 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Jeff Davis 2025-01-08 23:26:12 pgsql: Fix duplicate typedef from commit a2f17f004d.
Previous Message Jeff Davis 2025-01-08 21:55:32 pgsql: Move code for collation version into provider-specific files.