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 1mzPsY-0002lf-Cf for pgsql-general@arkaria.postgresql.org; Mon, 20 Dec 2021 21:07:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mzPsX-0007je-3v for pgsql-general@arkaria.postgresql.org; Mon, 20 Dec 2021 21:07:29 +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 1mzPsW-0007jU-Pk for pgsql-general@lists.postgresql.org; Mon, 20 Dec 2021 21:07:28 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzPsS-0007Q3-NN for pgsql-general@lists.postgresql.org; Mon, 20 Dec 2021 21:07:28 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id B8F633200E1A; Mon, 20 Dec 2021 16:07:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Mon, 20 Dec 2021 16:07:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=kyvNlJjKr6j3zkBV/MsPgrYwOaORIiN2SFywca2xo qc=; b=PuWB+t/RqP8NW1DzAHtxQ0ZzU916Ys04IoI/s+iQ3T46liLZ7tuwmi6br EEC/eKCVpl8KUWqGIfc3eIS9cW+oNZVMLLWDlKX5dxiS2pZvS+U5BzYtiVZ/UyZN tTqWQm8KvEgcHBB0tu/QAPnwesZ13WB9OGRU6zYUvPSdeBhmXpVlpCM92RWuomum thGuem7l+E12BVTNKmpWNxT5tNs+IYZCZXaBeZYkfx0ubSCa5hs0ztT+Gx4jE5zu qrXzaQDJ82qrZRwuk/XbbCCxNZmoT0NgELjsrqQ7JnuSsuWZJ73ZeFwShCgS+S2A 4xFDXQAwwhrw54/uy7Ke2ZexmCvAw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddtvddgudegiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeelgfetfeeitdelleeg geejvefhueetfedvtdejheevueeifeegvdfhueeludetueenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghu thesvghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 20 Dec 2021 16:07:20 -0500 (EST) Message-ID: <60e70ae5-250c-04a3-770b-047dc9d966f5@enterprisedb.com> Date: Mon, 20 Dec 2021 22:07:17 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: PGBouncer logs explanation required Content-Language: en-US To: Shubham Mittal , PostgreSQL General References: From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 19.12.21 12:50, Shubham Mittal wrote: > 2021-11-25 14:45:45.244 IST [18307] LOG C-0x6ae270: > sit/postgres@abcdlogin attempt: db=sit user=postgres tls=no > 2021-11-25 14:45:45.299 IST [18307] LOG S-0x6b4f48: sit/postgres@abcd > new connection to server (from abcd) > 2021-11-25 14:46:17.843 IST [18307] LOG S-0x6b4d10: sit/postgres@abcd > *closing because: query timeout (age=185s)* > 2021-11-25 14:46:17.843 IST [18307] LOG C-0x6ae038: sit/postgres@abcd > *closing because: query timeout (age=185s)* > 2021-11-25 14:46:17.843 IST [18307] WARNING C-0x6ae038: > sit/postgres@*abcd pooler error: query timeout* > 2021-11-25 14:46:25.763 IST [18307] LOG stats: 0 xacts/s, 0 queries/s, > in 30 B/s, out 141 B/s, xact 3660 us, query 4362 us, wait 152 us > > Does this log mean that connection is closed and returned to the pool > and can be reused again?? Or something else?? Please help. A closed connection cannot be reused, since it's closed. But after the connection is closed, there is a free slot in the pool to possibly open a new connection if needed.