pg_promote() can cause busy loop

Поиск
Список
Период
Сортировка
От Fujii Masao
Тема pg_promote() can cause busy loop
Дата
Msg-id CAHGQGwEs9ROgSp+QF+YdDU+xP8W=CY1k-_Ov-d_Z3JY+to3eXA@mail.gmail.com
обсуждение исходный текст
Ответы Re: pg_promote() can cause busy loop  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
Hi,

I found small issue in pg_promote(). If postmaster dies
while pg_promote() is waiting for the standby promotion to finish,
pg_promote() can cause busy loop. This happens because
pg_promote() does nothing when WaitLatch() detects
the postmaster death event. I think that pg_promote()
should bail out of the loop immediately in that case.

Attached is the patch for the fix.

Regards,

-- 
Fujii Masao

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Unexpected "shared memory block is still in use"
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: [HACKERS] CLUSTER command progress monitor