pgsql: Followup fixes for transaction_timeout - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Followup fixes for transaction_timeout
Date
Msg-id E1ranGR-006RmX-6a@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Followup fixes for transaction_timeout

Don't deal with transaction timeout in PostgresMain().  Instead, release
transaction timeout activated by StartTransaction() in
CommitTransaction()/AbortTransaction()/PrepareTransaction().  Deal with both
enabling and disabling transaction timeout in assign_transaction_timeout().

Also, remove potentially flaky timeouts-long isolation test, which has no
guarantees to pass on slow/busy machines.

Reported-by: Andres Freund
Discussion: https://postgr.es/m/20240215230856.pc6k57tqxt7fhldm%40awork3.anarazel.de

Branch
------
master

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

Modified Files
--------------
src/backend/access/transam/xact.c           | 12 ++++++++++
src/backend/tcop/postgres.c                 | 31 +++++++++----------------
src/test/isolation/isolation_schedule       |  1 -
src/test/isolation/specs/timeouts-long.spec | 35 -----------------------------
4 files changed, 23 insertions(+), 56 deletions(-)


pgsql-committers by date:

Previous
From: Alexander Korotkov
Date:
Subject: pgsql: Introduce transaction_timeout
Next
From: David Rowley
Date:
Subject: pgsql: Attempt to stabilize flapping regression test