Re: libpq async duplicate error results

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq async duplicate error results
Дата
Msg-id 3518938.1645061282@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq async duplicate error results  (Andres Freund <andres@anarazel.de>)
Ответы Re: libpq async duplicate error results
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2022-02-16 18:51:37 -0500, Tom Lane wrote:
>> +    /* Also, do nothing if the argument is OOM_result */
>> +    if (res == unconstify(PGresult *, &OOM_result))
>> +        return;

> Wouldn't it make more sense to make res const, rather than unconstifying
> &OOM_result?

Uh ... then we'd have to cast away the const to do free().

            regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Race conditions in 019_replslot_limit.pl
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Small TAP tests cleanup for Windows and unused modules