We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9fab25c commit 695c597Copy full SHA for 695c597
src/backend/access/transam/xact.c
@@ -871,6 +871,9 @@ TransactionIdIsCurrentTransactionId(TransactionId xid)
871
if (!TransactionIdIsNormal(xid))
872
return false;
873
874
+ if (TransactionIdEquals(xid, GetTopTransactionIdIfAny()))
875
+ return true;
876
+
877
/*
878
* In parallel workers, the XIDs we must consider as current are stored in
879
* ParallelCurrentXids rather than the transaction-state stack. Note that
0 commit comments