mirror of
https://github.com/postgres/postgres.git
synced 2025-08-27 07:42:10 +03:00
Revert bogus fixes of HOT-freezing bug
It turns out we misdiagnosed what the real problem was. Revert the previous changes, because they may have worse consequences going forward. A better fix is forthcoming. The simplistic test case is kept, though disabled. Discussion: https://postgr.es/m/20171102112019.33wb7g5wp4zpjelu@alap3.anarazel.de
This commit is contained in:
@@ -473,7 +473,7 @@ heap_prune_chain(Relation relation, Buffer buffer, OffsetNumber rootoffnum,
|
||||
* Check the tuple XMIN against prior XMAX, if any
|
||||
*/
|
||||
if (TransactionIdIsValid(priorXmax) &&
|
||||
!HeapTupleUpdateXmaxMatchesXmin(priorXmax, htup))
|
||||
!TransactionIdEquals(HeapTupleHeaderGetXmin(htup), priorXmax))
|
||||
break;
|
||||
|
||||
/*
|
||||
@@ -813,7 +813,7 @@ heap_get_root_tuples(Page page, OffsetNumber *root_offsets)
|
||||
htup = (HeapTupleHeader) PageGetItem(page, lp);
|
||||
|
||||
if (TransactionIdIsValid(priorXmax) &&
|
||||
!HeapTupleUpdateXmaxMatchesXmin(priorXmax, htup))
|
||||
!TransactionIdEquals(priorXmax, HeapTupleHeaderGetXmin(htup)))
|
||||
break;
|
||||
|
||||
/* Remember the root line pointer for this item */
|
||||
|
Reference in New Issue
Block a user