Re: Closing inactive connections OR user connections limits

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: Closing inactive connections OR user connections limits
Дата
Msg-id 87ptt05dp5.fsf@mailbox.samurai.com
обсуждение исходный текст
Ответ на Closing inactive connections OR user connections limits  (Francisco Reyes <lists@natserv.com>)
Ответы Re: Closing inactive connections OR user connections limits
Список pgsql-general
Francisco Reyes <lists@natserv.com> writes:
> Basically I came this morning to find a developer had a bug in a program
> and used up all the connections. Could I have safely killed those
> connections?

kill(1) the backends in question.

> In all the archives I read there seems to be a negative view on timeouts.
> I think that after 4 hours of no activity, at least in my case, I
> definitely want those connections dead.

The superuser_reserved_connections feature we added for 7.3 should be
sufficient for this -- if the maintenance tasks are done as the
PostgreSQL superuser, there will be some reserved "slots" for them to
connect to.

Cheers,

Neil

--
Neil Conway <neilc@samurai.com> || PGP Key ID: DB3C29FC

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

Предыдущее
От: Francisco Reyes
Дата:
Сообщение: Closing inactive connections OR user connections limits
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: rserv