pgsql: Clear stmt_timeout_active if we disable_all_timeouts.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Clear stmt_timeout_active if we disable_all_timeouts.
Date: 2018-02-09 20:50:42
Message-ID: E1ekFd4-0008Mk-N8@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(+)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2018-02-09 20:50:44 Re: [COMMITTERS] pgsql: Rearm statement_timeout after each executed query.
Previous Message Robert Haas 2018-02-09 20:28:51 pgsql: postgres_fdw: Attmempt to stabilize regression tests.