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 1qpqzC-007I8f-Jo for pgsql-admin@arkaria.postgresql.org; Mon, 09 Oct 2023 14:11:54 +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 1qpqzA-00ECOA-DQ for pgsql-admin@arkaria.postgresql.org; Mon, 09 Oct 2023 14:11:53 +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 1qpqz9-00ECFB-KR for pgsql-admin@lists.postgresql.org; Mon, 09 Oct 2023 14:11:52 +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 1qpqz8-00169H-06 for pgsql-admin@lists.postgresql.org; Mon, 09 Oct 2023 14:11:51 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 2FBB563CC2; Mon, 9 Oct 2023 14:11:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1696860677; bh=wSCtK2vISWMDlUIWdGYI5XLzGgkE8mYVqGZksReXDsY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=kOV2VxgC8rnB0iT+VSzeDZuDKK3LjEi+0pU7Ais2r3vY5XVS6594aIwV61cdCCsfG yIZ4kK40dUVR55belDyWrW4qmq4FcDDBOSkjXyqJCZFZLxsu7vY8MvdSq/TXmeCQmo Ic4Txl1AbziE3uOAPDMHAHiIvcWJJAUykPmYCGkRcmw22ztaJCsyvi2aEVxUqjg8v5 v2ReXgi/LKO2qMcJWivbXsVfYi9soQWYdwXQ5MRKTs6vDd4MI6rWQF7eHYm3/RbuOS 7lKnU1CFkPYs9JwzSalUSkWDhPboIPbPl61NuZ/p6WENikQjK5UZ7seyxClI7PkFTz 56DIX9yAor+dg== 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 uosOrerBoRJz; Mon, 9 Oct 2023 14:11:16 +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 AB02963AB7; Mon, 9 Oct 2023 14:11:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1696860676; bh=wSCtK2vISWMDlUIWdGYI5XLzGgkE8mYVqGZksReXDsY=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=vcJOeNCau2KqiH2jvswTdAIIkrlKso01m3s2W+TSe3VLfc9OiK2c1aVuC1ehvuPuF D5I5dAfHW/qdNYNhhI4STJBQvAIi7WFcHBlkyhAzZw6XsZ5DkW0nLSX07zwbqh9NTv x7qGi6vC+mKPmaz+QYAGZ6nwNkwb6+sks4aJkeX88C9R44QXKaMvJWW6hIIxu99GwU lqVhFqyZPWCQQjxMygCDrkfrp8f6HTspEbmq9C0Lw0oKa4bUwgwOGjCt7pAMjf2Xe0 gN8hFNv/gvYmwyZe6ihOB8LKil0kXefMKH7uS1Y3dEu4R/WtuH+IJxHAGOrapIjOYk TPhioZgc6U5eA== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.100.2.1.4\)) Subject: Re: Discard All in pgbouncer From: Scott Ribe In-Reply-To: Date: Mon, 9 Oct 2023 08:11:05 -0600 Cc: Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <1AC71BBF-B8CC-4503-8C83-A528B7B213B6@elevated-dev.com> References: To: Rajesh Kumar X-Mailer: Apple Mail (2.3774.100.2.1.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Oct 9, 2023, at 8:07=E2=80=AFAM, Rajesh Kumar = wrote: >=20 > Hi, >=20 > I could see queries like DISCARD ALL is idle for more than 5minutes = (we are using pgbouncer). >=20 > Why is it idle for more than 5mns? I read about pgbouncer and could = not understand this thing. If resetting a connection using query becomes = one idle connection, I don't understand the pooling system here=20 >=20 > Plz help Idle means it's not doing anything--pg_stat_activity is showing you the = last query executed.