Re: latch usage and postmaster death

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: latch usage and postmaster death
Дата
Msg-id CA+TgmoZTXi9xC187vKRWEhCYPJAYirbqYmJBTCsQLNB+b2FDiQ@mail.gmail.com
обсуждение исходный текст
Ответ на latch usage and postmaster death  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
On Mon, Mar 21, 2016 at 5:35 AM, Andres Freund <andres@anarazel.de> wrote:
> a significant number of WaitLatch's in the backend currently don't check
> for postmaster death. That's imo wrong.  E.g. SELECT pg_sleep(100); just
> continues to run.
>
> I think we should change most sites to error out in that case. I wonder
> if we shouldn't add another WL_ flag that automatically makes the latch
> code do so; instead of repeating the code at every callsite.

Yeah, or just make it do it always.  And probably FATAL rather than ERROR.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Parallel Aggregate
Следующее
От: Konstantin Knizhnik
Дата:
Сообщение: Re: Applying logical replication changes by more than one process