Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1epL1T-0002td-4x for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Feb 2018 21:36:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1epL1R-0002gr-Ri for pgsql-bugs@arkaria.postgresql.org; Fri, 23 Feb 2018 21:36:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1epL1R-0002gi-Lw for pgsql-bugs@lists.postgresql.org; Fri, 23 Feb 2018 21:36:53 +0000 Received: from c.mail.sonic.net ([64.142.111.80]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1epL1I-0004Cw-LE for pgsql-bugs@lists.postgresql.org; Fri, 23 Feb 2018 21:36:51 +0000 Received: from engels (162-236-13-58.lightspeed.sntcca.sbcglobal.net [162.236.13.58]) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id w1NLaSuS004630 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Fri, 23 Feb 2018 13:36:28 -0800 Date: Fri, 23 Feb 2018 13:36:27 -0800 From: David Gould To: Tom Lane Cc: "David G. Johnston" , Kevin Bloch , pgsql-bugs@lists.postgresql.org Subject: Re: maximum for auto_explain.log_min_duration doesn't seem to make sense Message-ID: <20180223133627.33672e01@engels> In-Reply-To: <16575.1519413959@sss.pgh.pa.us> References: <8ea82d7e-cb78-8e05-0629-73aa14d2a0ca@codingthat.com> <16575.1519413959@sss.pgh.pa.us> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Sonic-CAuth: UmFuZG9tSVYqAp8BEt3x+r2okiNBJ60TjURjSHCa3EFC2qiKZ/RERrP0Pcwj/CDpLGzAYjbrpz7WjIeQaMpYYDLYeAIWF32F X-Sonic-ID: C;ysDmmuEY6BGVHFDNXaHR5A== M;aDAVm+EY6BGVHFDNXaHR5A== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, 23 Feb 2018 14:25:59 -0500 Tom Lane wrote: > INT_MAX. As to whether it's worth doing, the existing limit is equivalent > to ~35 minutes if I did the math right. I can barely imagine that anyone > would want to set auto_explain.log_min_duration higher than that, but > maybe in some huge data warehouse environment it'd make sense. > In short, seems like a valid complaint to me. A client has several production queries that commonly run an hour or two. Sometimes queries are modified infelicitously or the planner is lead astray due to statistics etc and they can run much longer unexpectedly. It would be useful to set a threshold of a few hours to catch those as reproducing them is a slow process. -dg -- David Gould daveg@sonic.net If simplicity worked, the world would be overrun with insects.