Clearing out old idle connections

Поиск
Список
Период
Сортировка
От Gavin Hamill
Тема Clearing out old idle connections
Дата
Msg-id 4474131B.3020809@laterooms.com
обсуждение исходный текст
Ответы Re: Clearing out old idle connections  ("Ivan Zolotukhin" <ivan.zolotukhin@gmail.com>)
Re: Clearing out old idle connections  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Hullo :)


We have pg 8.1.3 and for whatever reason (network blips, poor pooling on
behalf of the client, etc.) we sometimes see a large number (dozens) of
old connections in the idle state which never get reused.

Is there a function in postgres similar to MySQL's 'wait_timeout' which
automatically closes any connections which have been idle for N seconds?
Is this functionality possible to to script/cron by examining the pg
catalogs and finding a 'last used' timestamp?

I am aware the correct response is 'deal with the cause, not the
symptoms', however I assure you that this academic approach wins no
friends in the enterprise market that postgres pitches itself at :)

Cheers,
Gavin.


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

Предыдущее
От: "Harald Armin Massa"
Дата:
Сообщение: challenging constraint situation - how do I make it real in SQL?
Следующее
От: "Chris Velevitch"
Дата:
Сообщение: How to estimate disk space