Re: Session Identifiers

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: Session Identifiers
Дата
Msg-id 20151221164242.GW3685@tamriel.snowman.net
обсуждение исходный текст
Ответ на Re: Session Identifiers  (oleg yusim <olegyusim@gmail.com>)
Ответы Re: Session Identifiers  (Melvin Davidson <melvin6925@gmail.com>)
Re: Session Identifiers  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-general
Oleg,

* oleg yusim (olegyusim@gmail.com) wrote:
> tcp_keepalives_idle = 900
> tcp_keepalives_interval=0
> tcp_keepalives_count=0
>
> Doesn't terminate connection to database in 15 minutes of inactivity of
> psql prompt. So, it looks like that would work only for case if network
> connection is broken and session left hanging. For psql prompt case looks
> like pg_terminate_backend() would be the only solution.

Those settings aren't for controlling idle timeout of a connection.

pg_terminate_backend() will work and could be run out of a cronjob.

Thanks!

Stephen

Вложения

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

Предыдущее
От: oleg yusim
Дата:
Сообщение: Re: Session Identifiers
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: Session Identifiers