pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <rhaas@postgresql.org>
To: pgsql-committers@postgresql.org
Subject: pgsql: Clear stmt_timeout_active if we disable_all_timeouts.
Date: Fri, 09 Feb 2018 20:50:42 +0000
Message-ID: <E1ekFd4-0008Mk-N8@gemulon.postgresql.org> (raw)

Clear stmt_timeout_active if we disable_all_timeouts.

Otherwise, we can end up with the flag set when the timeout is
actually disabled, leading to misbehavior.  Commit
f8e5f156b30efee5d0038b03e38735773abcb7ed introduced this bug.

Reported by Peter Eisentraut.  Analysis and fix by Thomas Munro,
tweaked by me.

Discussion: http://postgr.es/m/6a909374-2602-7136-8c70-397330a418f3@2ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/be42015fcc7f91574775a53df9923a36fabddc60

Modified Files
--------------
src/backend/tcop/postgres.c | 1 +
1 file changed, 1 insertion(+)



Message-ID: <E1ekFd4-0008Mk-N8@gemulon.postgresql.org>
Permalink:  ../E1ekFd4-0008Mk-N8@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ekFd4-0008Mk-N8@gemulon.postgresql.org

 · 

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: rhaas@postgresql.org
  Subject: Re: pgsql: Clear stmt_timeout_active if we disable_all_timeouts.
  In-Reply-To: <E1ekFd4-0008Mk-N8@gemulon.postgresql.org>
  References: <E1ekFd4-0008Mk-N8@gemulon.postgresql.org>

* 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