pgsql: Refactor string case conversion into provider-specific files.

From: Jeff Davis <jdavis(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Refactor string case conversion into provider-specific files.
Date: 2024-12-16 17:37:11
Message-ID: E1tNF1r-0032M1-9x@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Refactor string case conversion into provider-specific files.

Create API entry points pg_strlower(), etc., that work with any
provider and give the caller control over the destination
buffer. Then, move provider-specific logic into pg_locale_builtin.c,
pg_locale_icu.c, and pg_locale_libc.c as appropriate.

Discussion: https://postgr.es/m/7aa46d77b377428058403723440862d12a8a129a.camel@j-davis.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/86a5d6006aff956a5e00982b7628177fa7dc5027

Modified Files
--------------
src/backend/utils/adt/formatting.c | 465 ++++--------------------------
src/backend/utils/adt/pg_locale.c | 78 +++++
src/backend/utils/adt/pg_locale_builtin.c | 80 +++++
src/backend/utils/adt/pg_locale_icu.c | 130 ++++++++-
src/backend/utils/adt/pg_locale_libc.c | 327 +++++++++++++++++++++
src/include/utils/pg_locale.h | 14 +-
6 files changed, 676 insertions(+), 418 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2024-12-16 17:48:51 pgsql: psql: Tab completion for LATERAL joins
Previous Message Tomas Vondra 2024-12-16 16:33:52 pgsql: psql: Tab completion for ALTER TYPE ... ADD ATTRIBUTE