Re: tiny step toward threading: reduce dependence on setlocale()
Alexander Kukushkin <cyberdemn@gmail.com>
Hi Jeff, On Fri, 24 Oct 2025 at 04:37, Jeff Davis <pgsql@j-davis.com> wrote: > > Thank you, patch attached, intended for backport to 18. > I didn't check it with 18 because changes in regc_pg_locale.c heavily rely on 5a38104. However, I think changes to pg_locale.c should be enough to fix the problem in 18. > Are you aware of any way to encounter this bug without using an > extension? > I don't think so, but it would be nice to have a test for it anyway. Unfortunately this test will require a shared_preload_library module. Regards, -- Alexander Kukushkin
Commits
-
Special case C_COLLATION_OID in pg_newlocale_from_collation().
- 3ebea75f9afa 18.1 landed
- d115de9d8916 19 (unreleased) landed
-
Remove separate locale_is_c arguments
- 433d8f40e957 18.0 landed
-
Simplify checks for deterministic collations.
- b0c30612c5f6 18.0 landed
-
Remove redundant check for default collation.
- 6a9fc11033e6 18.0 landed
-
Remove lc_ctype_is_c().
- 51edc4ca54f8 18.0 landed
-
Be more careful with error paths in pg_set_regex_collation().
- 7829f85a6285 18.0 landed
-
Remove lc_collate_is_c().
- 06421b084364 18.0 landed
-
Remember last collation to speed up collation cache.
- 12d3345c0d28 18.0 landed
-
Slightly refactor varstr_sortsupport() to improve readability.
- a95ff1fe2eb4 18.0 landed
-
Remove unnecessary check for NULL locale, per Coverity.
- a459ac504cc6 18.0 landed
-
Remove dead code
- 4eb5089e2684 18.0 landed
-
selfuncs.c: use pg_strxfrm() instead of strxfrm().
- a890ad214942 18.0 landed
-
Remove support for null pg_locale_t most places.
- e9931bfb7515 18.0 landed
-
Make collation not depend on setlocale().
- 72fe6d24a38c 18.0 landed
-
Do not return NULL from pg_newlocale_from_collation().
- 8240401437c8 18.0 landed
-
Refactor: make default_locale internal to pg_locale.c.
- 1c461a8d8d3c 18.0 landed
-
All supported systems have locale_t.
- 8d9a9f034e92 17.0 cited