TransactionIdIsActive() has long been unused

From: Andres Freund <andres(at)anarazel(dot)de>
To: pgsql-hackers(at)postgresql(dot)org, Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Subject: TransactionIdIsActive() has long been unused
Date: 2025-07-09 18:34:57
Message-ID: odgftbtwp5oq7cxjgf4kjkmyq7ypoftmqy7eqa7w3awnouzot6@hrwnl5tdqrgu
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While looking at Tomas' NUMA patchset I got curious what we use
TransactionIdIsActive() for (it's modified in the patchset). Turns out we
don't. And haven't for a long while, the last use was removed in

commit bb38fb0d43c
Author: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
Date: 2014-05-15 16:37:50 +0300

Fix race condition in preparing a transaction for two-phase commit.

Seems like we should just remove TransactionIdIsActive()?

Greetings,

Andres Freund

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jacob Champion 2025-07-09 18:39:41 Re: [PoC] Federated Authn/z with OAUTHBEARER
Previous Message Tom Lane 2025-07-09 18:13:08 Re: [PoC] Federated Authn/z with OAUTHBEARER