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: Special case C_COLLATION_OID in pg_newlocale_from_collation().
Date: Wed, 05 Nov 2025 00:49:47 +0000
Message-ID: <E1vGRid-0054YY-36@gemulon.postgresql.org> (raw)

Special case C_COLLATION_OID in pg_newlocale_from_collation().

Allow pg_newlocale_from_collation(C_COLLATION_OID) to work even if
there's no catalog access, which some extensions expect.

Not known to be a bug without extensions involved, but backport to 18.

Also corrects an issue in master with dummy_c_locale (introduced in
commit 5a38104b36) where deterministic was not set. That wasn't a bug,
but could have been if that structure was used more widely.

Reported-by: Alexander Kukushkin <cyberdemn@gmail.com>
Reviewed-by: Alexander Kukushkin <cyberdemn@gmail.com>
Discussion: https://postgr.es/m/CAFh8B=nj966ECv5vi_u3RYij12v0j-7NPZCXLYzNwOQp9AcPWQ@mail.gmail.com
Backpatch-through: 18

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3ebea75f9afab4f526934100b4ba747e9d95bba8

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



view thread (2+ messages)

Message-ID: <E1vGRid-0054YY-36@gemulon.postgresql.org>
Permalink:  ../E1vGRid-0054YY-36@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vGRid-0054YY-36@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: Special case C_COLLATION_OID in pg_newlocale_from_collation().
  In-Reply-To: <E1vGRid-0054YY-36@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