Re: get_controlfile() can leak fds in the backend

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: get_controlfile() can leak fds in the backend
Дата
Msg-id 20190228005001.m4rcjoht2azuerir@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: get_controlfile() can leak fds in the backend  (Fabien COELHO <coelho@cri.ensmp.fr>)
Ответы Re: get_controlfile() can leak fds in the backend  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
Hi,

On 2019-02-27 11:50:17 +0100, Fabien COELHO wrote:
> Note that my concern is not about the page size, but rather that as more
> commands may change the cluster status by editing the control file, it would
> be better that a postmaster does not start while a pg_rewind or enable
> checksum or whatever is in progress, and currently there is a possible race
> condition between the read and write that can induce an issue, at least
> theoretically.

Seems odd to bring this up in this thread, it really has nothing to do
with the topic.  If we were to want to do more here, ISTM the right
approach would use the postmaster pid file, not the control file.

Greetings,

Andres Freund


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

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