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 1em1tp-00027h-Gm for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Feb 2018 18:35:21 +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 1em1to-000422-Bl for pgsql-hackers@arkaria.postgresql.org; Wed, 14 Feb 2018 18:35:20 +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 1em1to-00041o-4x for pgsql-hackers@lists.postgresql.org; Wed, 14 Feb 2018 18:35:20 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1em1tf-0005ZC-Dj for pgsql-hackers@postgresql.org; Wed, 14 Feb 2018 18:35:19 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id C118520BB4; Wed, 14 Feb 2018 13:35:09 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Wed, 14 Feb 2018 13:35:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=77n5z9n3xCOuKRzXwpc8OPi4Xh2Kd 9Oy/LsR83Vwf2g=; b=dEsIrXZIPO0lgZekreTF9FOapYzGPTsk5zrSbDC4LA9J9 +pJYVzl8nFMDl5/hD3uEibJ9EBpxyNwUKdpH7w/M9PUG6WeAgRSmD3ZX2E74Z+zi UuTf3W55GvX6P1fErGIjlqYLlp3+kdU0xfT6ThfzXrVwire/Euh7gYHr3C2FjnEz k6b3ciuRj+En13svBtpvToncx/ghcsn5nSsorlP1u7LHDkQWI/yG+H2GUaIgPQcC 47u8Hti+4LMvIu1RvK6zV989yr5CBaPptetZBf5J7qh8BlsQy+oCYHyMY4VbgAu3 pIZNJgpreT12KOVjQ5y9D1DTkgPQ6CiCe8w24uO9Q== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 681B67E3D9; Wed, 14 Feb 2018 13:35:09 -0500 (EST) Date: Wed, 14 Feb 2018 10:35:08 -0800 From: Andres Freund To: Robert Haas Cc: Thomas Munro , Peter Eisentraut , pgsql-hackers Subject: Re: [COMMITTERS] pgsql: Rearm statement_timeout after each executed query. Message-ID: <20180214183508.vvvm6h7swt34i4km@alap3.anarazel.de> References: <6a909374-2602-7136-8c70-397330a418f3@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-02-09 15:50:44 -0500, Robert Haas wrote: > On Wed, Feb 7, 2018 at 7:04 PM, Thomas Munro > wrote: > > On Tue, Feb 6, 2018 at 5:21 PM, Peter Eisentraut > > wrote: > >> On 9/18/17 22:41, Andres Freund wrote: > >>> Rearm statement_timeout after each executed query. > >> > >> This appears to have broken statement_timeout behavior in master such > >> that only every second query is affected by it. > > > > Yeah, I also just ran into this while testing a nearby complaint about > > statement timeouts vs parallel query. In the error path > > stmt_timeout_active remains true, so the next statement does nothing > > in enable_statement_timeout(). I think we just need to clear that > > flag in the error path, right where we call disable_all_timeouts(). > > See attached. > > Looks right. Committed, but I thought the comment was strange (forget > about?) so I just left that out. Thanks Peter, Thomas, Robert! - Andres