Re: Add cleanup parsing contexts for pg_hba and pg_ident files

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: 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-21 07:54:22
Message-ID: al8lrtha-6Aqy-LW@paquier.xyz
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.
--
Michael

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2026-07-21 07:55:13 Re: Unexpected behavior after OOM errors
Previous Message Tofig Aliev 2026-07-21 07:41:08 Add cleanup parsing contexts for pg_hba and pg_ident files