I'm trying to understand what the below parameters mean: max_dead_tuples
/ num_dead_tuples
on the pg_stat_progress_vacuum
view.
From the Postgres documentation:
max_dead_tuples
bigint
Number of dead tuples that we can store before needing to perform an index vacuum cycle, based onmaintenance_work_mem
.
num_dead_tuples
bigint
Number of dead tuples collected since the last index vacuum cycle.
Does this mean this value is changed per the maintenance_work_mem
allocations? I have tried setting different values to this parameter and the number on max_dead_tuples
increased to 178956970 and does not move further. Even if I reduce the maintenance_work_mem
this counter stays the same. Why is that so? What does these two parameter indicate?
Edit:
Noticed that when I reset the stats using select pg_stat_reset()
; after changing maintenance_work_mem
, I see different values in max_dead_tuples
. But I don't understand why the values are inconsistent?
Please advise.