Re: [PATCH] Add prepared_orphaned_transaction_timeout GUC - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: [PATCH] Add prepared_orphaned_transaction_timeout GUC
Date
Msg-id 2DCDBFFC-4B03-4EBC-88A3-06AD29933F17@yandex-team.ru
Whole thread Raw
In response to [PATCH] Add prepared_orphaned_transaction_timeout GUC  (Nikhil Chawla <chawlanikhil24@gmail.com>)
Responses Re: [PATCH] Add prepared_orphaned_transaction_timeout GUC
List pgsql-hackers

> On 23 Mar 2026, at 16:47, Nikhil Chawla <chawlanikhil24@gmail.com> wrote:
>
> idle_in_transaction_session_timeout, idle_session_timeout, statement_timeout, but no equivalent for prepared
transactions

During implementation of the transaction_timeout we briefly considered prepared xacts, but decided that it's a footgun.

DBA can easily do the same with a cron job, but in case of prepared transactions monitoring is crucial. Prepared xacts
areused to coordinate commit in many durable systems and orphan prepared xact is evidence of serious malfunction. 

Silent rollback in any scenario I can imagine is a disaster.


Best regards, Andrey Borodin.


pgsql-hackers by date:

Previous
From: Jim Jones
Date:
Subject: Re: VACUUM FULL, CLUSTER, and REPACK block on other sessions' temp tables
Next
From: Ashutosh Bapat
Date:
Subject: Re: SQL Property Graph Queries (SQL/PGQ)