pgsql: Followup fixes for transaction_timeout

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Followup fixes for transaction_timeout
Date: 2024-02-16 01:43:43
Message-ID: E1ranGR-006RmX-6a@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message David Rowley 2024-02-16 02:01:52 pgsql: Attempt to stabilize flapping regression test
Previous Message Alexander Korotkov 2024-02-15 21:57:10 pgsql: Introduce transaction_timeout