Re: Auto close idle connections for specific user (not by pg_cancel command)

From: Thomas Poty <thomas(dot)poty(at)gmail(dot)com>
To: Ravi Krishna <srkrishna100(at)aol(dot)com>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, emilu(at)encs(dot)concordia(dot)ca, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Auto close idle connections for specific user (not by pg_cancel command)
Date: 2019-02-05 18:37:25
Message-ID: CAN_ctnh-5HRuO8dYCQFJjJOX1sZvT2xJXctnL-gWL9tcik2=rw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You are right. So it is not suitable for your case. Sorry

Le mar. 5 févr. 2019 à 19:27, Ravi Krishna <srkrishna100(at)aol(dot)com> a écrit :

> >
> >
> https://www.cybertec-postgresql.com/en/idle_in_transaction_session_timeout-terminating-idle-transactions-in-postgresql/
> >
> > And use alter role in database set idle_in_transaction_session_timeout
> to...
> >
> > https://www.postgresql.org/docs/10/sql-alterrole.html
>
> But this works only for those sessions which has started a transaction and
> not committed within the session_timeout period, right ?

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ricardo Martin Gomez 2019-02-05 23:19:47 RE: Connection issue
Previous Message Thomas Poty 2019-02-05 18:23:52 Re: Auto close idle connections for specific user (not by pg_cancel command)