Add a guard against uninitialized default locale
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: pgsql-hackers@postgresql.org
Date: 2026-04-24T22:44:23Z
Lists: pgsql-hackers
Attachments
- v1.19-0001-Guard-against-uninitialized-default-locale.patch (text/x-patch) patch v1-0001
- v1.17-0001-Guard-against-uninitialized-default-locale.patch (text/x-patch) patch v1-0001
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). Regards, Jeff Davis
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Guard against uninitialized default locale.
- 1d76927469d3 17 (unreleased) landed
- 26bd362655bc 18 (unreleased) landed
- 1c77203c15e4 19 (unreleased) landed