From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: anup singh <midas.anup@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15759: Lot of idle connection created by "SET extra_float_digits = 3"
Date: Tue, 16 Apr 2019 14:37:05 +0200
Message-ID: <20190416123705.m3ved2p656qxxaoh@development> (raw)
In-Reply-To: <CA+i39Pw0C6Mg290Y-7nsOkot-OFbS0TxqjfRMG6DyU=1SnehwQ@mail.gmail.com>
References: <15759-234aaaf431c6a1b4@postgresql.org>
<20190416114551.kr6swl334plquxc5@development>
<CA+i39Py8zzHp8m3yHMF_NT-5WJ=sv_o5x7Dg=-R7e78z2XMr9A@mail.gmail.com>
<CA+i39Pw0C6Mg290Y-7nsOkot-OFbS0TxqjfRMG6DyU=1SnehwQ@mail.gmail.com>
On Tue, Apr 16, 2019 at 05:31:42PM +0530, anup singh wrote:
>Hi Tomas,
>
>Thanks for your response. Kindly see the below screen shot where we have
>lot of idle connection which is reaching max pool size soon, but the actual
>request is only one.
>
I'm pretty sure that's the expected behavior of a connection pool. It
opens a bunch of connections, does some initialization on them (which
likely includes the "SET extra_float_digits = 3" bit) and then keeps them
around so that the application can use them.
You have not really explained how it's killing your application, though.
My guess is it's either not going through the connection pool (and so is
hitting max_connections or something) or it's misconfigured in some other
way. In any case, extra_float_digits is not the root cause here.
regards
--
Tomas Vondra http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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-bugs@postgresql.org
Cc: tomas.vondra@2ndquadrant.com, midas.anup@gmail.com
Subject: Re: BUG #15759: Lot of idle connection created by "SET extra_float_digits = 3"
In-Reply-To: <20190416123705.m3ved2p656qxxaoh@development>
References: <15759-234aaaf431c6a1b4@postgresql.org> <20190416114551.kr6swl334plquxc5@development> <CA+i39Py8zzHp8m3yHMF_NT-5WJ=sv_o5x7Dg=-R7e78z2XMr9A@mail.gmail.com> <CA+i39Pw0C6Mg290Y-7nsOkot-OFbS0TxqjfRMG6DyU=1SnehwQ@mail.gmail.com> <20190416123705.m3ved2p656qxxaoh@development>
* 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