Re: unclear OAuth error message - Mailing list pgsql-hackers

From Jacob Champion
Subject Re: unclear OAuth error message
Date
Msg-id CAOYmi+mvFS7Ukmacb1z=xWO7M+DPF41GZsJiJ6sh4U1Qm_yWOA@mail.gmail.com
Whole thread
In response to Re: unclear OAuth error message  (Jacob Champion <jacob.champion@enterprisedb.com>)
Responses Re: unclear OAuth error message
List pgsql-hackers
On Fri, Mar 27, 2026 at 4:20 PM Jacob Champion
<jacob.champion@enterprisedb.com> wrote:
> I don't think I can enforce either choice, though: I pass the
> error_detail into the ereport(FATAL), so the process is about to go
> down, and I'm never going to pfree() it.

(I also think it's reasonable to do something like

    res->error_detail = "Help! it's again.";

if there's nothing to format, without mandating a superfluous pstrdup().)

v4 rebases, incorporates Chao Li's feedback, rewrites the surrounding
paragraph a bit, and fixes a silly misuse of <xref> when I meant
<link>.

--Jacob

Attachment

pgsql-hackers by date:

Previous
From: Peter Geoghegan
Date:
Subject: Re: index prefetching
Next
From: Jacob Champion
Date:
Subject: Re: [oauth] Split and extend PGOAUTHDEBUG