From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow pg_locale_t APIs to work when ctype_is_c.
Date: Wed, 26 Nov 2025 20:56:47 +0000
Message-ID: <E1vOMZD-001YDt-17@gemulon.postgresql.org> (raw)
Allow pg_locale_t APIs to work when ctype_is_c.
Previously, the caller needed to check ctype_is_c first for some
routines and not others. Now, the APIs consistently work, and the
caller can just check ctype_is_c for optimization purposes.
Discussion: https://postgr.es/m/450ceb6260cad30d7afdf155d991a9caafee7c0d.camel@j-davis.com
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/147602822597204aa436415ebe295926b268ab5c
Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 82 +++++++++++++++++++++++++++++++---
src/backend/utils/adt/pg_locale_libc.c | 6 +++
2 files changed, 82 insertions(+), 6 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: Allow pg_locale_t APIs to work when ctype_is_c.
In-Reply-To: <E1vOMZD-001YDt-17@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