Re: "Hanging Connection" blocks access to table (JBossMQ)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: "Hanging Connection" blocks access to table (JBossMQ)
Дата
Msg-id 29655.1160750114@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: "Hanging Connection" blocks access to table (JBossMQ)  (Markus Schaber <schabi@logix-tt.com>)
Ответы Re: "Hanging Connection" blocks access to table (JBossMQ)
Список pgsql-jdbc
Markus Schaber <schabi@logix-tt.com> writes:
> Is there any possibility that we make a backend realize this SIGIO (or
> whatever it gets) when the connection is closed?

I don't think it'd be a net win to add cycles to every query to check
the connection every so often.

> The same is for very long running C-Code functions (like PostGIS
> geomUnion() on geometries with millions of vertices), those also tend to
> block the backend for long times, without any possibility to kill it
> except SIGKILL.

That's the fault of the C code ... it should be doing
CHECK_FOR_INTERRUPTS periodically in any long-running loops.

            regards, tom lane

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

Предыдущее
От: Guillaume Cottenceau
Дата:
Сообщение: Re: 'now' is sometimes not now - but current_timestamp is
Следующее
От: Markus Schaber
Дата:
Сообщение: Re: "Hanging Connection" blocks access to table (JBossMQ)