Re: get_controlfile() can leak fds in the backend - Mailing list pgsql-hackers

From Fabien COELHO
Subject Re: get_controlfile() can leak fds in the backend
Date
Msg-id alpine.DEB.2.21.1902271015100.10851@lancre
Whole thread Raw
In response to get_controlfile() can leak fds in the backend  (Michael Paquier <michael@paquier.xyz>)
Responses Re: get_controlfile() can leak fds in the backend  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Bonjour Michaël,

> Thoughts?

None.

However, while at it, there is also the question of whether the control 
file should be locked when updated, eg with flock(2) to avoid race 
conditions between concurrent commands. ISTM that there is currently not 
such thing in the code, but that it would be desirable.

-- 
Fabie.

pgsql-hackers by date:

Previous
From: leif@lako.no
Date:
Subject: Re: BUG #15589: Due to missing wal, restore ends prematurely andopens database for read/write
Next
From: Andres Freund
Date:
Subject: Re: get_controlfile() can leak fds in the backend