Thread
-
Re: Add a guard against uninitialized default locale
Jeff Davis <pgsql@j-davis.com> — 2026-05-14T22:00:46Z
On Fri, 2026-04-24 at 15:44 -0700, Jeff Davis wrote: > Not known to be reachable after dbf217c1c7, but defend against > similar > issues in the future. For instance, an extension might encounter the > problem by calling pg_newlocale_from_collation(DEFAULT_COLLATION_OID) > from _PG_init(), and end up with a NULL pointer dereference. > > Backport through 17, though patch is different in 17 (also attached). I plan to commit and backport this soon. Regards, Jeff Davis