Add a guard against uninitialized default locale - Mailing list pgsql-hackers

From Jeff Davis
Subject Add a guard against uninitialized default locale
Date
Msg-id d080287d8d2d14c246c86be2e9eb611fb6b27b11.camel@j-davis.com
Whole thread
List pgsql-hackers
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


Attachment

pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Fix bug with accessing to temporary tables of other sessions
Next
From: Jim Jones
Date:
Subject: Re: Fix bug with accessing to temporary tables of other sessions