From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
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:45:24 |
Message-ID: | 930841.1753796724@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> 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.
I'll run with Alvaro's suggestion, then.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Jim Jones | 2025-07-29 14:01:19 | Re: Regression with large XML data input |
Previous Message | Rahila Syed | 2025-07-29 13:40:26 | Re: Enhancing Memory Context Statistics Reporting |