mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Make vacuum a bit more verbose to debug BF failure.
This is temporary. While possibly some more error checking / debugging in this path would be a good thing, it'll not look exactly like this. Discussion: https://postgr.es/m/20200816181604.l54m6kss5ntd6xow@alap3.anarazel.de
This commit is contained in:
@ -1350,7 +1350,14 @@ lazy_scan_heap(Relation onerel, VacuumParams *params, LVRelStats *vacrelstats,
|
||||
if (HeapTupleIsHotUpdated(&tuple) ||
|
||||
HeapTupleIsHeapOnly(&tuple) ||
|
||||
params->index_cleanup == VACOPT_TERNARY_DISABLED)
|
||||
{
|
||||
/* temporary on-bf debugging */
|
||||
elog(LOG, "treating dead HOT tuple (updated %d, heap only: %d, index cleanup: %d) as alive",
|
||||
HeapTupleIsHotUpdated(&tuple), HeapTupleIsHeapOnly(&tuple),
|
||||
params->index_cleanup == VACOPT_TERNARY_DISABLED);
|
||||
|
||||
nkeep += 1;
|
||||
}
|
||||
else
|
||||
tupgone = true; /* we can delete the tuple */
|
||||
all_visible = false;
|
||||
|
Reference in New Issue
Block a user