From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Shubham Mittal <mittalshubham30@gmail.com>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: PGBouncer logs explanation required
Date: Mon, 20 Dec 2021 22:07:17 +0100
Message-ID: <60e70ae5-250c-04a3-770b-047dc9d966f5@enterprisedb.com> (raw)
In-Reply-To: <CA+ERcR8_fA5Y8JRZsOye1DXDf9bqL+SUuFw=2b+NVoE4OtTCYg@mail.gmail.com>
References: <CA+ERcR8_fA5Y8JRZsOye1DXDf9bqL+SUuFw=2b+NVoE4OtTCYg@mail.gmail.com>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: peter.eisentraut@enterprisedb.com, mittalshubham30@gmail.com
Subject: Re: PGBouncer logs explanation required
In-Reply-To: <60e70ae5-250c-04a3-770b-047dc9d966f5@enterprisedb.com>
References: <CA+ERcR8_fA5Y8JRZsOye1DXDf9bqL+SUuFw=2b+NVoE4OtTCYg@mail.gmail.com> <60e70ae5-250c-04a3-770b-047dc9d966f5@enterprisedb.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox