Re: PostgreSQL(v9.6.5) not releasing old/inactive IDLE connections

From: Thomas Kellerer <shammat(at)gmx(dot)net>
To: pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: PostgreSQL(v9.6.5) not releasing old/inactive IDLE connections
Date: 2021-12-08 11:24:46
Message-ID: da132b1a-a3b1-cd67-87bc-e05d143587e1@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Paul Smith schrieb am 08.12.2021 um 10:18:
>> I'm facing "Too many clients already" error frequently with my
>> PostgreSQL (v9.6.5) container (i.e. being used along with CKAN
>> application i.e. A open source data management system
>> <https://ckan.org/> ), I have observed that PostgreSQL is not
>> releasing IDLE connections from their end. I have set
>> "max_connetions = 100" in postgresql.
>>
> It is the responsibility of the client software to release
> connections when they are no longer needed. The server won't just
> time-out idle connections unless it is told to do so

Automatically closing idle sessions is only available since Postgres 14

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message hubert depesz lubaczewski 2021-12-08 12:23:16 Re: PostgreSQL(v9.6.5) not releasing old/inactive IDLE connections
Previous Message Dischner, Anton 2021-12-08 11:13:54 AW: postgresql long running query