| From: | Jeff Davis <jdavis(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Special case C_COLLATION_OID in pg_newlocale_from_collation(). |
| Date: | 2025-11-05 00:49:47 |
| Message-ID: | E1vGRid-0054YY-36@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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(at)gmail(dot)com>
Reviewed-by: Alexander Kukushkin <cyberdemn(at)gmail(dot)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(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2025-11-05 01:04:35 | pgsql: aio: Improve assertions related to io_method |
| Previous Message | Jeff Davis | 2025-11-05 00:49:41 | pgsql: Special case C_COLLATION_OID in pg_newlocale_from_collation(). |