From: Andres Freund <andres@anarazel.de>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Thomas Munro <thomas.munro@enterprisedb.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Rearm statement_timeout after each executed query.
Date: Wed, 14 Feb 2018 10:35:08 -0800
Message-ID: <20180214183508.vvvm6h7swt34i4km@alap3.anarazel.de> (raw)
In-Reply-To: <CA+TgmoYwf05jVpKXDVjejr_=gkRh+iDVM2a0QapRx8vTZN7DRQ@mail.gmail.com>
References: <E1du8T6-0006WL-SZ@gemulon.postgresql.org>
<6a909374-2602-7136-8c70-397330a418f3@2ndquadrant.com>
<CAEepm=3BdR_yB_WEkKGF0M180f6=f=4R4R6o6mWJL9e8vtj6wg@mail.gmail.com>
<CA+TgmoYwf05jVpKXDVjejr_=gkRh+iDVM2a0QapRx8vTZN7DRQ@mail.gmail.com>
On 2018-02-09 15:50:44 -0500, Robert Haas wrote:
> On Wed, Feb 7, 2018 at 7:04 PM, Thomas Munro
> <thomas.munro@enterprisedb.com> wrote:
> > On Tue, Feb 6, 2018 at 5:21 PM, Peter Eisentraut
> > <peter.eisentraut@2ndquadrant.com> 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
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-committers@postgresql.org
Cc: andres@anarazel.de, robertmhaas@gmail.com, thomas.munro@enterprisedb.com, peter.eisentraut@2ndquadrant.com, pgsql-hackers@postgresql.org
Subject: Re: [COMMITTERS] pgsql: Rearm statement_timeout after each executed query.
In-Reply-To: <20180214183508.vvvm6h7swt34i4km@alap3.anarazel.de>
References: <E1du8T6-0006WL-SZ@gemulon.postgresql.org> <6a909374-2602-7136-8c70-397330a418f3@2ndquadrant.com> <CAEepm=3BdR_yB_WEkKGF0M180f6=f=4R4R6o6mWJL9e8vtj6wg@mail.gmail.com> <CA+TgmoYwf05jVpKXDVjejr_=gkRh+iDVM2a0QapRx8vTZN7DRQ@mail.gmail.com> <20180214183508.vvvm6h7swt34i4km@alap3.anarazel.de>
* 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