| From: | Andreas Karlsson <andreas(at)proxel(dot)se> |
|---|---|
| To: | Michael Paquier <michael(at)paquier(dot)xyz>, Tofig Aliev <t(dot)aliev(at)postgrespro(dot)ru> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Add cleanup parsing contexts for pg_hba and pg_ident files |
| Date: | 2026-07-25 11:56:29 |
| Message-ID: | c3f77925-2577-4109-82c0-fd2764204fd0@proxel.se |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 7/21/26 9:54 AM, Michael Paquier wrote:
> On Tue, Jul 21, 2026 at 02:41:08PM +0700, Tofig Aliev wrote:
>> Background processes calling load_hba()/load_ident() may see
>> undefined behavior because PostmasterContext is already gone.
>> This patch adds proper context cleanup to prevent this issue.
>
> Why would you want to do that? I don't necessarily object to a change
> like that, just wondering why somebody would be interesting in calling
> these APIs from a bgworker context.
I could imagine it could be useful if someone would want to implement
another frontend protocol, e.g. for emulating MongoDB, but still would
want to enforce the rules from the HBA file but as I have never tried to
build such a system I am not sure.
Andreas
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fujii Masao | 2026-07-25 14:03:57 | Re: Restore check_mut_excl_opts, usage in pg_restore and pg_dumpall |
| Previous Message | Greg Burd | 2026-07-25 10:45:26 | Re: [PATCH] Batched clock sweep to reduce cross-socket atomic contention |