Re: Clients disconnect but query still runs

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Clients disconnect but query still runs
Дата
Msg-id 407d949e0907300154n169c5713p7722bf7bf753e08f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Clients disconnect but query still runs  (Tatsuo Ishii <ishii@postgresql.org>)
Ответы Re: Clients disconnect but query still runs
Список pgsql-general
On Thu, Jul 30, 2009 at 8:41 AM, Tatsuo Ishii<ishii@postgresql.org> wrote:
>> Well SIGPIPE is no help since it would only fire if we tried to write
>> to the socket anyways.
>
> Right. For this purpose, pgpool sends param packet to client
> periodically while waiting for a reply from backend to detect if the
> connection to the client is broken. If it's broken, pgool sends cancel
> packet to backend not to waste backend machine's CPU cycle.

The downside to this is that it will cause spurious failures for
transient network failures even if the network comes back before it's
actually needed.

--
greg
http://mit.edu/~gsstark/resume.pdf

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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: pg_stat_activity undocumented?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Clients disconnect but query still runs