Re: [COMMITTERS] pgsql: Rearm statement_timeout after each executed query.
Thomas Munro <thomas.munro@enterprisedb.com>
From: Thomas Munro <thomas.munro@enterprisedb.com>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>,
pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2018-02-08T00:04:13Z
Lists: pgsql-hackers
Attachments
- fix-statement-timeout.patch (application/octet-stream) patch
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. -- Thomas Munro http://www.enterprisedb.com
Commits
-
Clear stmt_timeout_active if we disable_all_timeouts.
- be42015fcc7f 11.0 landed
-
Rearm statement_timeout after each executed query.
- f8e5f156b30e 11.0 cited