pgsql-hackers
❮
Add a guard against uninitialized default locale
- Jump to comment-1Jeff Davis<pgsql@j-davis.com>Apr 24, 2026, 10:44 PM UTCNot known to be reachable after dbf217c1c7, but defend against similar
issues in the future. For instance, an extension might encounter the
problem by calling pgnewlocalefromcollation(DEFAULTCOLLATION_OID)
from PGinit(), and end up with a NULL pointer dereference.
Backport through 17, though patch is different in 17 (also attached).
Regards,Jeff Davis