Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muqi7-0002Kx-Ls for pgsql-admin@arkaria.postgresql.org; Wed, 08 Dec 2021 06:45:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1muqi6-0007Xv-5v for pgsql-admin@arkaria.postgresql.org; Wed, 08 Dec 2021 06:45:50 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muqi5-0007Xm-NF for pgsql-admin@lists.postgresql.org; Wed, 08 Dec 2021 06:45:49 +0000 Received: from mail-os0jpn01on2084.outbound.protection.outlook.com ([40.107.113.84] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1muqi1-0005Tq-Oo for pgsql-admin@lists.postgresql.org; Wed, 08 Dec 2021 06:45:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WDzFVf+i9eRY4OP9D+rTggNpyLM24PoqZiHJduCKozdapHZUIXCxNuclG+WlHLoBEsLhCzw3VqjP4Lf8CiawdLqYgcMvnCALdP3ye+s18CosyxDG5XoMXuyuMvu5PUHY0Wdy+ud95K3F/b5c7OUiV77avrgi2QZ1Qe81pOzaWPbp3ONwx020h4k9mS5/Lchrn/E9y506dt//Xg8mFmYq9HFDAyuA0PcNVZppxzFS5ev2RL2WdGAQmYHyyAAj/P2i+lQAvd2LFpCk6v0ye30f1HDwHeytbO1SjovTFWHuWBx6dak2XCQhOclTa4dq1kXH+16iO2wo98fyDJuppthwZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=efkDr+U3FZk9u3YV02TnrSAmlF3n5wTn3emPq0vN4EI=; b=mnPGIMNQcJyRL05zE+Gcgeo+lUeD2k0NErp4c/no4oyNV5OiY0qX0+LX3m8ARayldnWVj6QKfajeHYJPgJbM1ndRTSYwh6sBR5CVhaWDqgw1JppSmqlKIF4caCXMXjdDI2Ni2DeKKsbglRV6K7zDtVHZVaU8tUmDNa/TgupUFPo7R3Md1QTiabJDJEYgJwblzzXqnFqdav1WZEvX7QBp+qDBUy3vcs3JtRurRjTNgaNmPJWcBMYMuR1VU0Z+U1e57jIvOMS5qhZsxz4gPucBF9kpI87R4seZ/E47vxiWcvjuJgVx0AgP5vNnTVyO1BpyRst5/ZLG4Lgr/M58z9iz5Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=india.nec.com; dmarc=pass action=none header.from=india.nec.com; dkim=pass header.d=india.nec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=necgcp.onmicrosoft.com; s=selector1-necgcp-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=efkDr+U3FZk9u3YV02TnrSAmlF3n5wTn3emPq0vN4EI=; b=W6JQ1QqvJ0sj/rxAwjaXu4+Ce3Yhw77rSHhcmOYULYdab3jrVRPzTUOKcp0bG1UgbCnD5f9P+6iHVxsLptr4XtlYOTW6mRpMpe87UG1jR/7nbdZAayiGDBPVQyO2Ejp5WSV+fNvKAOdNnFuFoStZ9L5o5YXBOdsctxPrXDiONso= Received: from OS3PR01MB5816.jpnprd01.prod.outlook.com (2603:1096:604:c4::14) by OSAPR01MB1843.jpnprd01.prod.outlook.com (2603:1096:603:2b::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.16; Wed, 8 Dec 2021 06:45:38 +0000 Received: from OS3PR01MB5816.jpnprd01.prod.outlook.com ([fe80::9071:45b3:e189:a7eb]) by OS3PR01MB5816.jpnprd01.prod.outlook.com ([fe80::9071:45b3:e189:a7eb%5]) with mapi id 15.20.4755.022; Wed, 8 Dec 2021 06:45:38 +0000 From: Md Arqum Farooqui To: "pgsql-admin@lists.postgresql.org" Subject: PostgreSQL(v9.6.5) not releasing old/inactive IDLE connections Thread-Topic: PostgreSQL(v9.6.5) not releasing old/inactive IDLE connections Thread-Index: Adfr/u8hhhKsYBBvT7qPpQmZH9v/fw== Date: Wed, 8 Dec 2021 06:45:38 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-bromium-msgid: 67754a84-007b-46b0-9a27-ade505493ab4 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=india.nec.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c8b9f991-7b70-4585-a82f-08d9ba1658ab x-ms-traffictypediagnostic: OSAPR01MB1843:EE_ x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rixMh2n2VD5pVBZVNtsuMbW/8UpsmzD0bVfodIJ3d5b9W6lUyH+gFHu+pYR9meJdNalCQvZ0dsHXVv971GlKUlH0kBs0yqnbpPT7QqmcaHpHfs5rhIGBT0UbJjb4lA3pm1swv6h9JVmsLNp5B9OAkk37kPmOpQCxwaLmP5J1G+YECW735NVHyf5bfsfGySv+YHP/zgeG/OhNHQfqt6HUxA5Xgc2jrSfcsk8s1QbZMzIO9L4v1fIO38yH8dyKHHPQa8HwzTH4DlkhIO/TFKSyZGwBh3ScAH2kvjpIKt6wPeanDXr49KhAXlmt1iuNyIpsrCrge5nz+5w8EQQHdAwrSL+irWYT1bJ++tAZYirbPQh/Nwl1bLYH0kwlTzUaVnguRCCrqRpOmLjJP5Hcxl+kcBD2dvtHJVgVanyH0bdyMZMNZuhhEMjRKnXyY7X5eF4GMsUh7r595AQJjmlC3hBqcNAMTpRNKR2LUg6t1zMkUR2jFdlUbSLePbfkRAGRViy22t9Npvdo0W3tc4K0ZoZU0ZR8cv80DssLPnzp7w1mlhQO1k7BfLM6UKIQUhpF11AJ4/OrZWhRhPmZMWf2xaPff4JZ++9oeO9tKWnC1EqT5Q3u1W6zg4iyI7nt+tSDHI084//l1KcWmU7fdVFayqprUXCK9xkj0qmsbazyGKdYKL+ki4lKzU4t/PBhA0yUUbkHQfKqxwkbsxZVBQBoyCpksp3tnS3rItDamkApDkU5pqjToXCiKgjbL20+d/7ZsCIgLDiwIbAJiu8ncAVzF6IrDAiAdxHm4jTx9jd+2yB3Tqk= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OS3PR01MB5816.jpnprd01.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(55016003)(38100700002)(316002)(6916009)(122000001)(71200400001)(66946007)(76116006)(52536014)(9686003)(83380400001)(9326002)(86362001)(166002)(6506007)(38070700005)(186003)(7696005)(66556008)(64756008)(66446008)(66476007)(2906002)(8936002)(8676002)(508600001)(82960400001)(5660300002)(33656002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?+YDxdsHo5v6Y6Iul/MKrJdrRLdsm9ITClejbXyOBT5d4r4i0pJrfy/Ksf0I6?= =?us-ascii?Q?3SqL66mvID1mxbmiNXGGuPA2bRBv0gSAI3MhDIoL+DYV5IBXHcPf5AoNXRPp?= =?us-ascii?Q?g5RAg2U8yHeTG7RNpBEOMMzNjqP05Beyn6z1YmNIpqBz21Efc30tcRlm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ZkAUZl68T583Nn50iyfB/gdf3g/Cledd8QaV?= =?us-ascii?Q?T39661FFHKeI7VDEZ0NFEeDIpQsFlpb4zI8GZPa5ZxmvyCOEa5tOqJnfXh7Z?= =?us-ascii?Q?KoaymUMxwjXwhbznewKSIT5zxCiDrBiCIAz91ZXY9gEEuYPRaFvVL8iPJNIp?= =?us-ascii?Q?CiyP4tq7jP+EFzRu2myeA1mH4N+bWjJG66R4HHxJAmFqAKOdvmBfk1TaVDgF?= =?us-ascii?Q?FU6SSA7xlTSRLF7JZgE7JQ2sraEfqPQLoTmd1Pq3LZfd3Ih7X8vuNYbfl9Wc?= =?us-ascii?Q?2sWhQgDhXzp2oVMIcefn2TP3X4Ix5j3dJVmWT445rGpUscQGNyyobCArUtMO?= =?us-ascii?Q?AhN0ysLC0IqfK3Qyi5hTmCZPqdJ0pXqDcGlSMRKPAhsQy6OKgWz+YXvg7E7P?= =?us-ascii?Q?FfAkpVFlv5/9sNGyw7Hbu4R2u1en+j8d2156+n0J1Zc1WL3nIq91NaVX2sT2?= =?us-ascii?Q?u4toQ+ynS09j4+J2ioXDIXMyx0NEKjzaQJjBCP1hwZvZhYvFlPlR16kE0ZSe?= =?us-ascii?Q?JCm9ya2LGKcPGyHl9ZThhECWM+OoOjbTEzu0Tj8RyAyJaBg1In5MBjPQBkTZ?= =?us-ascii?Q?Ykq1C4W9z2Ls2RfZbKMmCFNXLxOU1rvdg1C4Hq0b8DiDnGXS8bDhlgrynWw0?= =?us-ascii?Q?jahR2ASHtN/QgK7H3UPnXpErbbEgLwSjYDr/bu3wr6EAUWoasyPFN9ZjbB9q?= =?us-ascii?Q?Srr/R3Na1g=3D=3D?= Content-Type: multipart/alternative; boundary="_000_OS3PR01MB581659FF3F8020F174751B4BA76F9OS3PR01MB5816jpnp_" MIME-Version: 1.0 X-OriginatorOrg: india.nec.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OS3PR01MB5816.jpnprd01.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c8b9f991-7b70-4585-a82f-08d9ba1658ab X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Dec 2021 06:45:38.8390 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: c2e2f202-eea9-46e0-81d4-4e3c2897622e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: I5VqAg6GtxIzqJXic9h1DXDAnIJCk7Se94CFT7ZTkUM8I+iszuvbfVT7PxcZuYPcd3cw0uPy/PB0Ht8mAfPQEh4gZpDm9JoTGXvbZ8wg0cs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSAPR01MB1843 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_OS3PR01MB581659FF3F8020F174751B4BA76F9OS3PR01MB5816jpnp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, 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 ), I have observed that Po= stgreSQL is not releasing IDLE connections from their end. I have set "max_= connetions =3D 100" in postgresql. Please provide your suggestions on below queries: 1. Why PostgreSQL is not releasing IDLE connection? (If we leave the setup = then postgres keep IDLE connection even for 1 month, after that I have to = restart the Postgres) 2. Is there any parameter or any solution by which i can remove unused old = IDLE connection regularly? Thanks and Regards, Arqum farooqui ________________________________ The contents of this e-mail and any attachment(s) are confidential and inte= nded for the named recipient(s) only. It shall not attach any liability on = the originator or NEC Corporation India Private Limited or its affiliates. = Any views or opinions presented in this email are solely those of the autho= r and may not necessarily reflect the opinions of NEC Corporation India Pri= vate Limited or its affiliates. Any form of reproduction, dissemination, co= pying, disclosure, modification, distribution and / or publication of this = message without the prior written consent of the author of this e-mail is s= trictly prohibited. If you have received this email in error please delete = it and notify the sender immediately. --_000_OS3PR01MB581659FF3F8020F174751B4BA76F9OS3PR01MB5816jpnp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

I'm facing "Too many clients already" error frequently with my Po= stgreSQL (v9.6.5) container (i.e. being used along with CKAN application i.= e. 
A open source data management system ), I have observed that PostgreSQL is not releasing IDLE connectio= ns from their end. I have set "max_connetions =3D 100" in postgresql.

Please provide your suggestions on below queries:

1. Why PostgreSQL is not releasing IDLE = connection? (If we leave the setup then postgres keep IDLE  connection= even for 1 month, after that I have to restart the Postgres)
2. Is there any parameter or any solutio= n by which i can remove unused old IDLE connection regularly?


Thanks and Regards,
Arqum farooqui





The contents of this e-mail and any attachment(s) are confidential and inte= nded for the named recipient(s) only. It shall not attach any liability on = the originator or NEC Corporation India Private Limited or its affiliates. = Any views or opinions presented in this email are solely those of the author and may not necessarily refle= ct the opinions of NEC Corporation India Private Limited or its affiliates.= Any form of reproduction, dissemination, copying, disclosure, modification= , distribution and / or publication of this message without the prior written consent of the author of this e-= mail is strictly prohibited. If you have received this email in error pleas= e delete it and notify the sender immediately. --_000_OS3PR01MB581659FF3F8020F174751B4BA76F9OS3PR01MB5816jpnp_--