Re: pgsql: Address set of issues with errno handling

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Address set of issues with errno handling
Дата
Msg-id 22991.1533396088@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Address set of issues with errno handling  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: pgsql: Address set of issues with errno handling  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-committers
Michael Paquier <michael@paquier.xyz> writes:
> On Fri, Aug 03, 2018 at 04:04:36PM -0400, Tom Lane wrote:
>> You need to go back and add the pre-clearing of errno in each of these
>> places, otherwise the added code is basically useless.

> I looked at all code paths enforcing ENOSPC on write() calls, and
> attached is a patch to address this issue for all of them.  What do you
> think?  I can of course get that addressed before the next set of minor
> releases.

That looks good as far as it goes.  I didn't cross-check that you
hit everyplace that needs this, but if you grepped for references to
ENOSPC then you presumably found them all.

IMO, it's OK to push this this weekend if you have time.

            regards, tom lane


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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: Address set of issues with errno handling
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Reset properly errno before calling write()