Re: Idle_session_timeout - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Idle_session_timeout
Date
Msg-id 37b909eb3a90ce66315ff88d62f122a47399b720.camel@cybertec.at
Whole thread Raw
In response to Idle_session_timeout  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
List pgsql-admin
On Wed, 2023-10-04 at 21:08 +0530, Rajesh Kumar wrote:
> I was facing issue with idle connections not closed.
>
> So, I thought of automating it and set the parameter idle_session_timeout to 5min.
> But I got a message from application team that they are getting jdbc error
> continuously and they are saying connection is getting terminated.
> So I had to turn it off now.

Yes, if the connection is forcibly closed by the server, the client won't be happy.

If you say "idle connections not closed", that is the fault of the application.
The application has to explicitly close all connections it does not need any more.

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Rajesh Kumar
Date:
Subject: Re: Idle_session_timeout
Next
From: Rajesh Kumar
Date:
Subject: Re: Pg_cron not working