pgsql: Remove lc_ctype_is_c(). - Mailing list pgsql-committers

From Jeff Davis
Subject pgsql: Remove lc_ctype_is_c().
Date
Msg-id E1smfsY-000RqZ-PS@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix incorrect pg_stat_io output on 32-bit machines.
Next
From: Michael Paquier
Date:
Subject: pgsql: Update extension lookup routines to use the syscache