Re: Connections - Postgres 9.2
От | Lucas Possamai |
---|---|
Тема | Re: Connections - Postgres 9.2 |
Дата | |
Msg-id | CAE_gQfVKMcwgrWXG-jkgr=jUT6o_uNeH6YW_rCxeW5sL_jKBCg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: Connections - Postgres 9.2 (Sridhar N Bamandlapally <sridhar.bn1@gmail.com>) |
Список | pgsql-general |
On 17 May 2016 at 22:24, Sridhar N Bamandlapally <sridhar.bn1@gmail.com> wrote:
HiI control this wayif "state_change" is from longtime and "state" is idle then I usefunction:pg_terminate_backend ( integer ) ==> return TRUE if killed-successful else FALSEexample:# select pg_terminate_backend ( pid ) from pg_stat_activity where state='idle' and state_change < (current_timestamp - interval '1 hour');may be helpfulNOTE: we come to decision to kill sessions in idle state more then "1 hour" after lot of discussion with application / implementation / stake-holders team*removed history as thrown error due to mail lengthThanksSridharOpenText
Hi Sridhar!
Thanks for your help...
I also control the same way.. But was wondering if a pooler would bring me performance improvements...
cheers
В списке pgsql-general по дате отправления: