Re: BUG #15105: OpenTransientFile() should be paired withCloseTransientFile() rather than close()

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #15105: OpenTransientFile() should be paired withCloseTransientFile() rather than close()
Дата
Msg-id 20180411032917.GK26769@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #15105: OpenTransientFile() should be paired with CloseTransientFile() rather than close()  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Tue, Apr 10, 2018 at 06:40:43PM -0400, Tom Lane wrote:
> On closer inspection, such a cross-check wouldn't have helped find this
> particular mistake, because it was in an error exit path that's likely
> never been exercised by anybody, and certainly isn't hit in the regression
> tests.  Still, I think it'd be a good thing to add, and hence propose the
> attached patch.  (I've verified that the warning doesn't fire in "make
> check-world".)

Good idea.  +1 for your proposed patch.
--
Michael

Вложения

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

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: power() function in Windows: "value out of range: underflow"
Следующее
От: Euler Taveira
Дата:
Сообщение: Re: power() function in Windows: "value out of range: underflow"