pgsql: Make WL_POSTMASTER_DEATH level-triggered on kqueue builds.

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема pgsql: Make WL_POSTMASTER_DEATH level-triggered on kqueue builds.
Дата
Msg-id E1kSpUr-0004Az-KN@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Make WL_POSTMASTER_DEATH level-triggered on kqueue builds.

If WaitEventSetWait() reports that the postmaster has gone away, later
calls to WaitEventSetWait() should continue to report that.  Otherwise
further waits that occur in the proc_exit() path after we already
noticed the postmaster's demise could block forever.

Back-patch to 13, where the kqueue support landed.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/3624029.1602701929%40sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b94109ce375b137f235149bfba3559c69f4573e7

Modified Files
--------------
src/backend/storage/ipc/latch.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Include result relation info in direct modify ForeignScan nodes.
Следующее
От: Thomas Munro
Дата:
Сообщение: pgsql: Make WL_POSTMASTER_DEATH level-triggered on kqueue builds.