We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent335c5e9 commit5766228Copy full SHA for 5766228
src/backend/access/heap/heapam.c
@@ -5113,10 +5113,11 @@ heap_freeze_tuple(HeapTupleHeader tuple, TransactionId cutoff_xid,
5113
* cutoff; it doesn't remove dead members of a very old multixact.
5114
*/
5115
xid=HeapTupleHeaderGetRawXmax(tuple);
5116
-if (TransactionIdIsNormal(xid)&&
5117
-(((!(tuple->t_infomask&HEAP_XMAX_IS_MULTI)&&
5118
-TransactionIdPrecedes(xid,cutoff_xid)))||
5119
-MultiXactIdPrecedes(xid,cutoff_multi)))
+if ((tuple->t_infomask&HEAP_XMAX_IS_MULTI) ?
+(MultiXactIdIsValid(xid)&&
+MultiXactIdPrecedes(xid,cutoff_multi)) :
+(TransactionIdIsNormal(xid)&&
5120
+TransactionIdPrecedes(xid,cutoff_xid)))
5121
{
5122
HeapTupleHeaderSetXmax(tuple,InvalidTransactionId);
5123