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 1hGMXN-00050J-S4 for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Apr 2019 11:46:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hGMXL-0003JK-B1 for pgsql-bugs@arkaria.postgresql.org; Tue, 16 Apr 2019 11:46:03 +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 1hGMXK-0003JB-W7 for pgsql-bugs@lists.postgresql.org; Tue, 16 Apr 2019 11:46:03 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGMXD-0002ad-Vc for pgsql-bugs@lists.postgresql.org; Tue, 16 Apr 2019 11:46:01 +0000 Received: by mail-wr1-x430.google.com with SMTP id j9so26586065wrn.6 for ; Tue, 16 Apr 2019 04:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zcmAkDWjK7NVIaIFfmNx13eXfuPhATNE5UrPZlORQuo=; b=CPoUk+iRqnE0aWWQUoE9zjfNctRBpU2W3+nAc5iDn4DG0/S6CAHaAiFrCm6obXdOJw bg6onlfb/+jx0N4rfikizVYwEtbd/YbFRCLeNshQ7LKZdIdzsJFjVjIXI8q9KzgthiGM 5wV89bO27kbcoovp+w1Issguhd97DeKLTbqUxD8ke4hySIPq4+x8m7pUTjgLdVptg9Qs ttAgyjqEEwnAvi6f2269PKC3Os/NWYysE0Saruk1zF+pHWqy/Jn6iAEwK4gX6tUEhqXd VvShZ4IvRDF1srfb6nS1VfQ8E6NFkYz+FPU+KLt4YeRy/E/wNv/JHI0vh3zuXX6p3eeW 0cgQ== 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:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zcmAkDWjK7NVIaIFfmNx13eXfuPhATNE5UrPZlORQuo=; b=pVgRS55jUAIlH0adUxEijKEsuuByk+hsxbkRqwXil9xxrn/VaStIBGO8w3Kz7VK7qg rUVcJWWlrIAaTTyxfQBUecyTen1/d4aplJ4XxOwLhh489xAGIM0lMXgfK68qqzQFLbHl lWgH+L0LlPgo1wo85/+xazLqO6UvL7bCsdFZTjGByy24kJsEYGWmfRP+jqcaWoSM2jFg rEuwEPA/kYpfMej+Y/H/WdUYDsCWZ43mL3yDFWryThPiWYfxGq744dUeViVut80nu+A7 9tunlY9Tc83DPef5i3qyOTJrYaM3KH7qAvv7XAIqtLAvKoAAFi6szWN9LADcI3x6Olrr tp+Q== X-Gm-Message-State: APjAAAXtFVKwyuvPMwiRCdVXRulfO7ld3WKj9XvMg6ALhOkA0KWriUni oVfgBwA+z9POcg72aHlIa5KTpA== X-Google-Smtp-Source: APXvYqzbNDD4ouSWANurNigy84qWL8YWPAq0fuoNHvwAlIlU4lUYrRLFH1HQUnPE/rBeqVOb7MsOyA== X-Received: by 2002:a5d:6a03:: with SMTP id m3mr17603697wru.88.1555415154441; Tue, 16 Apr 2019 04:45:54 -0700 (PDT) Received: from localhost (static-84-42-175-93.net.upcbroadband.cz. [84.42.175.93]) by smtp.gmail.com with ESMTPSA id s12sm22962135wmj.42.2019.04.16.04.45.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Apr 2019 04:45:53 -0700 (PDT) Date: Tue, 16 Apr 2019 13:45:51 +0200 From: Tomas Vondra To: midas.anup@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15759: Lot of idle connection created by "SET extra_float_digits = 3" Message-ID: <20190416114551.kr6swl334plquxc5@development> References: <15759-234aaaf431c6a1b4@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <15759-234aaaf431c6a1b4@postgresql.org> 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 11:04:25AM +0000, PG Bug reporting form wrote: >The following bug has been logged on the website: > >Bug reference: 15759 >Logged by: anup singh >Email address: midas.anup@gmail.com >PostgreSQL version: 10.7 >Operating system: linux >Description: > >Lot of idle connection created by "SET extra_float_digits = 3" which is >killing our applicaiton. > SET extra_float_digits = 3 (or any other SET command) does not create any connections at all. It's much more likely your application opens a new connection, executes the SET command on it (so it's in pg_stat_activity) and then goes to do something else. If that's not the case, we need much more information. Why do you think the SET command is creating idle connections? regards -- Tomas Vondra http://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services