Re: get_controlfile() can leak fds in the backend

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: get_controlfile() can leak fds in the backend
Дата
Msg-id 22d70be7-9334-bfdc-a071-2efca3c52b98@joeconway.com
обсуждение исходный текст
Ответ на Re: get_controlfile() can leak fds in the backend  (Joe Conway <mail@joeconway.com>)
Ответы Re: get_controlfile() can leak fds in the backend  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 2/27/19 10:26 AM, Joe Conway wrote:
> On 2/27/19 2:47 AM, Michael Paquier wrote:
>> Hi all,
>> (CC-ing Joe as of dc7d70e)

> According to that comment BasicOpenFile does not seem to solve the issue
> you are pointing out (leaking of file descriptor on ERROR). Perhaps
> OpenTransientFile() is more appropriate? I am on the road at the moment
> so have not looked very deeply at this yet though.


It seems to me that OpenTransientFile() is more appropriate. Patch done
that way attached.

Joe

--
Crunchy Data - http://crunchydata.com
PostgreSQL Support for Secure Enterprises
Consulting, Training, & Open Source Development

Вложения

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: pgsql: Avoid creation of the free space map for small heaprelations, t
Следующее
От: "Tsunakawa, Takayuki"
Дата:
Сообщение: RE: reloption to prevent VACUUM from truncating empty pages at theend of relation