Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkP2G-00EM8x-N9 for pgsql-admin@arkaria.postgresql.org; Sun, 24 Sep 2023 13:20:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qkP2F-008t83-3t for pgsql-admin@arkaria.postgresql.org; Sun, 24 Sep 2023 13:20:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkP2E-008t7c-No for pgsql-admin@lists.postgresql.org; Sun, 24 Sep 2023 13:20:30 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qkP2C-007IwJ-0W for pgsql-admin@lists.postgresql.org; Sun, 24 Sep 2023 13:20:30 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 91A7663690; Sun, 24 Sep 2023 13:19:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1695561595; bh=MBdl1sYFMR2JfS2XMitNlOjn4cazeQrnUtEuBHBGS/k=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=YTvt0XSLjQOO2BtaTRQoc0eP2J0xgN2shNNFQ2VD8dUZfCSUfDYFksfYzfES8jhHE B1EFDZSx05v/trkK0DYRqx8cscqpQm5tzhbmL0Ii2FeV+EtdCslg4QftvtZ8f7+Fio 8ccGGqZdOJkJuA6YcS/y+z7uoKMx7PPRO1phU+75Q1JOXQmaDXfIkYwKPiud0BQRLj oNDOir4qIAqpuvqUk9Fz5oJxPj2EiQMuJ4t6/R5XmViv7lUvvpZBC7TYo6fgpeYTw8 Oi2fedjXEW64uLAy1aLFSbTbUSRtNQZgNE72oiLS7AIjNxnci5hJeUzztiJRhzXVze okxEngfRGATNA== X-Virus-Scanned: Debian amavisd-new at emo09-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo09-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AAsSyHufl9IF; Sun, 24 Sep 2023 13:19:55 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id DE3F3634A5; Sun, 24 Sep 2023 13:19:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1695561595; bh=MBdl1sYFMR2JfS2XMitNlOjn4cazeQrnUtEuBHBGS/k=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=YTvt0XSLjQOO2BtaTRQoc0eP2J0xgN2shNNFQ2VD8dUZfCSUfDYFksfYzfES8jhHE B1EFDZSx05v/trkK0DYRqx8cscqpQm5tzhbmL0Ii2FeV+EtdCslg4QftvtZ8f7+Fio 8ccGGqZdOJkJuA6YcS/y+z7uoKMx7PPRO1phU+75Q1JOXQmaDXfIkYwKPiud0BQRLj oNDOir4qIAqpuvqUk9Fz5oJxPj2EiQMuJ4t6/R5XmViv7lUvvpZBC7TYo6fgpeYTw8 Oi2fedjXEW64uLAy1aLFSbTbUSRtNQZgNE72oiLS7AIjNxnci5hJeUzztiJRhzXVze okxEngfRGATNA== Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: Handling idle connections From: Scott Ribe In-Reply-To: Date: Sun, 24 Sep 2023 07:19:44 -0600 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Rajesh Kumar X-Mailer: Apple Mail (2.3731.700.6) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Sep 24, 2023, at 7:03 AM, Rajesh Kumar = wrote: >=20 > Could u give me a tip on how to figure out where they are coming and = what do u mean exactly by saying "fixing" them Look at pg_stat_activity. There's the application_name column--if your = apps are not setting that, the query column shows last/current query and = that is sometimes a clue. (Also, if your clients are not setting = application name, fix them.) If you don't want client applications leaving connections idle, then = clients should release connections when not using them.