Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGNL6-00073w-7U for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Apr 2019 12:37:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGNL2-0007A0-Us for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Apr 2019 12:37:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGNL2-00079t-CS for pgsql-bugs@lists.postgresql.org; Tue, 16 Apr 2019 12:37:24 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGNKy-0003fv-7j for pgsql-bugs@lists.postgresql.org; Tue, 16 Apr 2019 12:37:22 +0000 Received: by mail-wm1-x332.google.com with SMTP id n25so25213992wmk.4 for ; Tue, 16 Apr 2019 05:37:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=tR4T0yp6NvY/bc8ZPjIAqMQtUaomc66FEELUFWdcKaE=; b=bAuo8E/bepiIo4yP9m+y4XPHqO1RL4Y21fGIMMU8Zo039Zzo+UfQxU4Z3Xt5B+cUGR svIaw5zzEnwZoZyUFLszExBaEuAFl7kuAIBSMw87Dct1s8j8g4PPPcUgXC7qVKRBu0ao M6HJNBj8PEYDsxPcvjEDb/WCFrlhEKQcjzkmR84xvcJ5IFr83puXpxc5gkVgmFxcvJjG BZNaj4y1/HsTw4fAWgJu4vtymVvgNsjtges/HZ0ln6Cx58n5dyNaeDWWYljmF4wkRet2 uXhbKDMoAIremugx6O5iwN6ho+i4lMWswS/k5s7tUYB+aHVEkDgA/GrafGXCvYR/L0Sw vnJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=tR4T0yp6NvY/bc8ZPjIAqMQtUaomc66FEELUFWdcKaE=; b=HNAvqTsQneoV6lT8PjyUAafJDo0Ru+XnOq7+mivfMzTIQ+AsIJhhupswFN1+X23KTd d4uqP/zgkAAeCPgl3zM0Xo4/0H6blbSsGgXY2clbkOlNmVQc9lCDf0ymFj2MioqzraHc MrnLfUPrj58mWvqqacouKAcajifn+ezxMfJfRI+DWuxemg2SZ8wdT5pH8fLYN9uTxrZG VzVA1dbkQdSB0FVkYRCHheIuB91Uaq7XsOgT9Wyh9yShilmsxdXaDD+ijYOhp2qFkH0A OcLrrN9C3gVnMikT8hSo/4xj8kEehWLiW8srNpDXZHP3voxwLWEvRtP1Qg6xiroJUcYV HgYw== X-Gm-Message-State: APjAAAXJYwUxHCChUCGKtGQjyh6kgsj5myzLI4craV524J52tOr+i67f P5o8ObqfLQIAPQkVsLVQLMiOyA== X-Google-Smtp-Source: APXvYqz+RA0Bxwxq0ioGxu4JCxuRQ+giBJke5mcUbgw/DRnRvvjLB3xXrsrxINKjJBBKPm3qFbElcw== X-Received: by 2002:a1c:dc43:: with SMTP id t64mr28025062wmg.19.1555418236919; Tue, 16 Apr 2019 05:37:16 -0700 (PDT) Received: from localhost (static-84-42-175-93.net.upcbroadband.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id w9sm3719603wmi.0.2019.04.16.05.37.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2019 05:37:08 -0700 (PDT) Date: Tue, 16 Apr 2019 14:37:05 +0200 From: Tomas Vondra To: anup singh Cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15759: Lot of idle connection created by "SET extra_float_digits = 3" Message-ID: <20190416123705.m3ved2p656qxxaoh@development> References: <15759-234aaaf431c6a1b4@postgresql.org> <20190416114551.kr6swl334plquxc5@development> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-1444-295967-dirty List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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