Re: get_controlfile() can leak fds in the backend

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: get_controlfile() can leak fds in the backend
Дата
Msg-id d019854e-6325-5b90-9962-4700d92cedf1@joeconway.com
обсуждение исходный текст
Ответ на Re: get_controlfile() can leak fds in the backend  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: get_controlfile() can leak fds in the backend  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On 2/27/19 7:54 PM, Michael Paquier wrote:
> On Wed, Feb 27, 2019 at 07:45:11PM -0500, Joe Conway wrote:
>> It seems to me that OpenTransientFile() is more appropriate. Patch done
>> that way attached.
>
> Works for me, thanks for sending a patch!  While on it, could you
> clean up the comment on top of get_controlfile()?  "char" is mentioned
> instead of "const char" for DataDir which is incorrect.  I would
> remove the complete set of arguments from the description and just
> keep the routine name.

Sure, will do. What are your thoughts on backpatching? This seems
unlikely to be a practical concern in the field, so my inclination is a
master only fix.

Joe

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


Вложения

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

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Re: FETCH FIRST clause PERCENT option
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: get_controlfile() can leak fds in the backend