Re: Idle In Transaction Session Timeout, revived

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Idle In Transaction Session Timeout, revived
Дата
Msg-id CA+TgmoZBv_Luu6M+kUY077iEPTChRFc93dYn4y_sWAqy=EjM9A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Idle In Transaction Session Timeout, revived  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Ответы Re: Idle In Transaction Session Timeout, revived  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
On Wed, Feb 3, 2016 at 5:36 PM, Jim Nasby <Jim.Nasby@bluetreble.com> wrote:
>> I think killing the session is a perfectly sensible thing to do in this
>> case.  Everything meaningful that was done in the session will be rolled
>> back - no need to waste resources keeping the connection open.
>
>
> Except you end up losing stuff like every GUC you've set, existing temp
> tables, etc. For an application that presumably doesn't matter, but for a
> user connection it would be a PITA.
>
> I wouldn't put a bunch of effort into it though. Dropping the connection is
> certainly better than nothing.

Well, my view is that if somebody wants an alternative behavior
besides dropping the connection, they can write a patch to provide
that as an additional option.  That, too, has been discussed before.
But the fact that somebody might want that doesn't make this a bad or
useless behavior.  Indeed, I'd venture that more people would want
this than would want that.

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



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

Предыдущее
От: Vik Fearing
Дата:
Сообщение: Re: Idle In Transaction Session Timeout, revived
Следующее
От: Robert Haas
Дата:
Сообщение: Re: postgres_fdw join pushdown (was Re: Custom/Foreign-Join-APIs)