From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove lc_ctype_is_c().
Date: Fri, 06 Sep 2024 20:48:27 +0000
Message-ID: <E1smfsY-000RqZ-PS@gemulon.postgresql.org> (raw)
Remove lc_ctype_is_c().
Instead always fetch the locale and look at the ctype_is_c field.
hba.c relies on regexes working for the C locale without needing
catalog access, which worked before due to a special case for
C_COLLATION_OID in lc_ctype_is_c(). Move the special case to
pg_set_regex_collation() now that lc_ctype_is_c() is gone.
Author: Andreas Karlsson
Discussion: https://postgr.es/m/60929555-4709-40a7-b136-bcb44cff5a3c@proxel.se
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/51edc4ca54f826cfac012c7306eee479f07a5dc7
Modified Files
--------------
src/backend/regex/regc_pg_locale.c | 21 ++++++++++++++++++---
src/backend/utils/adt/formatting.c | 27 ++++++++++++---------------
src/backend/utils/adt/like.c | 2 +-
src/backend/utils/adt/like_support.c | 19 +++++++------------
src/backend/utils/adt/pg_locale.c | 26 --------------------------
src/include/catalog/pg_collation.dat | 3 +--
src/include/utils/pg_locale.h | 2 --
7 files changed, 39 insertions(+), 61 deletions(-)
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: Remove lc_ctype_is_c().
In-Reply-To: <E1smfsY-000RqZ-PS@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