Clear stmt_timeout_active if we disable_all_timeouts.

Robert Haas <rhaas@postgresql.org>

Commit: be42015fcc7f91574775a53df9923a36fabddc60
Author: Robert Haas <rhaas@postgresql.org>
Date: 2018-02-09T20:48:18Z
Releases: 11.0
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

Files

PathChange+/−
src/backend/tcop/postgres.c modified +1 −0

Discussion