aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/access/heap/heapam.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backend/access/heap/heapam.c b/src/backend/access/heap/heapam.c
index cfbbc6301e3..4fe3a739109 100644
--- a/src/backend/access/heap/heapam.c
+++ b/src/backend/access/heap/heapam.c
@@ -3809,11 +3809,9 @@ HeapTupleHeaderAdvanceLatestRemovedXid(HeapTupleHeader tuple,
!(tuple->t_infomask & HEAP_XMIN_INVALID) &&
TransactionIdDidCommit(xmin)))
{
- if (TransactionIdFollows(xmax, xmin))
- {
- if (TransactionIdFollows(xmax, *latestRemovedXid))
+ if (xmax != xmin &&
+ TransactionIdFollows(xmax, *latestRemovedXid))
*latestRemovedXid = xmax;
- }
}
/* *latestRemovedXid may still be invalid at end */