pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <jdavis@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Ensure all pg_locale.h APIs work with collate_is_c.
Date: Thu, 20 Aug 2026 16:41:25 +0000
Message-ID: <E1wx5pU-00000001Ns3-2TpO@gemulon.postgresql.org> (raw)

Ensure all pg_locale.h APIs work with collate_is_c.

Safer for callers, so that checking collate_is_c is only needed if the
caller wants to optimize for that case.

Backpatch to avoid creating a hazard for other backpatches in this
area.

Suggested-by: Andres Freund <andres@anarazel.de>
Suggested-by: Heikki Linnakangas <hlinnaka@iki.fi>
Discussion: https://postgr.es/m/v36ssaygf7grb3qzfsjhtdzi7kqd45ds56nyuf7gi5qjml4qbb@ezmfqzmhlrs2
Backpatch-through: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/47c350c522e3c6624d03cbe7630c167302926881

Modified Files
--------------
src/backend/utils/adt/pg_locale.c | 64 +++++++++++++++++++++++++++++++++++----
1 file changed, 58 insertions(+), 6 deletions(-)



view thread (3+ messages)

Message-ID: <E1wx5pU-00000001Ns3-2TpO@gemulon.postgresql.org>
Permalink:  ../E1wx5pU-00000001Ns3-2TpO@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1wx5pU-00000001Ns3-2TpO@gemulon.postgresql.org

 · 

reply

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: Ensure all pg_locale.h APIs work with collate_is_c.
  In-Reply-To: <E1wx5pU-00000001Ns3-2TpO@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