Re: Re: [SQL] PostgreSQL crashes on me :(

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Re: [SQL] PostgreSQL crashes on me :(
Дата
Msg-id 20256.977163506@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Re: [SQL] PostgreSQL crashes on me :(  (Ian Lance Taylor <ian@airs.com>)
Ответы Re: Re: [SQL] PostgreSQL crashes on me :(  (Ian Lance Taylor <ian@airs.com>)
Список pgsql-hackers
Ian Lance Taylor <ian@airs.com> writes:
>    Any thoughts on a cleaner solution?

> One way to avoid this race condition is to set a timeout on the
> select.  What is the maximum acceptable time for a timely response?

I thought about that, but it doesn't seem like a cleaner solution.
Basically you'd have to figure a tradeoff between wasted cycles in
the postmaster and time delay to respond to a crashed backend.
And there's no good tradeoff there.  If you have a backend crash,
you want to shut down the other backends ASAP, before they have a
chance to propagate any shared-memory corruption that the failed
backend might've created.  The entire exercise is probably pointless
if the postmaster twiddles its thumbs for awhile before killing the
other backends.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [DOCS] Re: 7.1 features list
Следующее
От: Ian Lance Taylor
Дата:
Сообщение: Re: Re: [SQL] PostgreSQL crashes on me :(