]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Special case C_COLLATION_OID in pg_newlocale_from_collation().
authorJeff Davis <jdavis@postgresql.org>
Wed, 5 Nov 2025 00:28:07 +0000 (16:28 -0800)
committerJeff Davis <jdavis@postgresql.org>
Wed, 5 Nov 2025 00:48:16 +0000 (16:48 -0800)
commitd115de9d89164e87269d73d4f0f1368f06ebdd5e
tree9769fb4572102ece03db044d1f07d7535f708b56
parent8ae0f6a0c3da4b1568b753906eb8ea34d41da251
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
src/backend/regex/regc_pg_locale.c
src/backend/utils/adt/pg_locale.c