pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Rearm statement_timeout after each executed query.
Date: Mon, 5 Feb 2018 23:21:44 -0500
Message-ID: <6a909374-2602-7136-8c70-397330a418f3@2ndquadrant.com> (raw)
In-Reply-To: <E1du8T6-0006WL-SZ@gemulon.postgresql.org>
References: <E1du8T6-0006WL-SZ@gemulon.postgresql.org>

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.  For example:

create table t1 as select * from generate_series(0, 100000000) as _(a);
set statement_timeout = '1s';
explain analyze select from t1 where a = 55;  -- gets canceled
explain analyze select from t1 where a = 55;  -- completes (>1s)
explain analyze select from t1 where a = 55;  -- gets canceled
explain analyze select from t1 where a = 55;  -- completes (>1s)
etc.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (5+ messages)  latest in thread

Message-ID: <6a909374-2602-7136-8c70-397330a418f3@2ndquadrant.com>
Permalink:  ../6a909374-2602-7136-8c70-397330a418f3@2ndquadrant.com/
Also on:    postgresql.org/message-id/6a909374-2602-7136-8c70-397330a418f3@2ndquadrant.com

 · 

reply

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: peter.eisentraut@2ndquadrant.com, andres@anarazel.de, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Rearm statement_timeout after each executed query.
  In-Reply-To: <6a909374-2602-7136-8c70-397330a418f3@2ndquadrant.com>
  References: <E1du8T6-0006WL-SZ@gemulon.postgresql.org> <6a909374-2602-7136-8c70-397330a418f3@2ndquadrant.com>

* 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