Re: Extended Statistics set/restore/clear functions.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Extended Statistics set/restore/clear functions.
Дата
Msg-id 1353179.1764901790@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Extended Statistics set/restore/clear functions.  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: Extended Statistics set/restore/clear functions.
Список pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes:
> On Thu, Dec 04, 2025 at 07:37:32PM -0500, Tom Lane wrote:
>> This of course arises because the source code is passing the address
>> of a local ErrorSaveContext variable to that macro.  We don't have
>> any other instances of that coding pattern AFAICS, so I wonder if
>> that was really the most adapted way to do it.

> Thanks for the report.  Right.  There are three instances of that in
> pg_dependencies.c, two in pg_ndistinct.c.  I would not mind doing the
> attached to calm down these warnings, matching with the other areas of
> the code, that simply removes the macro and checks the state value
> directly.

Ah, right, now that you mention it, 56b1e88c8 did this same fix
before.  This way is fine with me.

I didn't review the error message changes closely.  I do wonder if
some of them are can't-happen cases that could just use an elog()
instead of a translatable message.

            regards, tom lane



В списке pgsql-hackers по дате отправления: