Re: Making pgfdw_report_error statically analyzable

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Álvaro Herrera <alvherre(at)kurilemu(dot)de>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Making pgfdw_report_error statically analyzable
Date: 2025-07-29 13:36:11
Message-ID: CA+Tgmoan9KO2puNwq+V5EdJaBifkYB5C=xv=J9Fx5Nq4E+FjOA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Jul 28, 2025 at 5:30 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> =?utf-8?Q?=C3=81lvaro?= Herrera <alvherre(at)kurilemu(dot)de> writes:
> > Hmm, what about 2c. having pgfdw_report_error() with hardcoded elevel,
> > but complement it with pgfdw_report() that takes the elevel as argument,
> > asserting that it's less than ERROR? Then the calls look like
> > pgfdw_report(WARNING, "doo dee");
>
> > which makes sense IMO and we don't have to worry about the future.
>
> This is the same as my 2a except for the choice of function name.
> I'd be fine with it, but Robert didn't like 2a.

I think I like this a little better than your 2a. It's not a big deal, anyway.

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rahila Syed 2025-07-29 13:40:26 Re: Enhancing Memory Context Statistics Reporting
Previous Message David E. Wheeler 2025-07-29 13:20:00 Re: encode/decode support for base64url