Fix race condition in transaction timeout TAP tests

Alexander Korotkov <akorotkov@postgresql.org>

Commit: 4c2eda67f55a8a263820d12aaeaa7e1dfe7406ee
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2024-03-15T12:38:22Z
Releases: 17.0
Fix race condition in transaction timeout TAP tests

The interruption handler within the injection point can get stuck in an
infinite loop while handling transaction timeout. To avoid this situation
we reset the timeout flag before invoking the injection point.

Author: Alexander Korotkov
Reviewed-by: Andrey Borodin
Discussion: https://postgr.es/m/ZfPchPC6oNN71X2J%40paquier.xyz

Files

PathChange+/−
src/backend/tcop/postgres.c modified +5 −7

Discussion

Cited messages not in the archive: ZfPchPC6oNN71X2J@paquier.xyz