From: | Joe Conway <mail(at)joeconway(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Postgres hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: get_controlfile() can leak fds in the backend |
Date: | 2019-02-28 12:11:04 |
Message-ID: | d019854e-6325-5b90-9962-4700d92cedf1@joeconway.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2019-02-28 12:20:59 | Re: get_controlfile() can leak fds in the backend |
Previous Message | Kyotaro HORIGUCHI | 2019-02-28 11:49:36 | Re: FETCH FIRST clause PERCENT option |