In PostgreSQL 9.3.19 log I see the following two consecutive entries for autovacuum of a given table:
2018-06-29 17:24:06 CDT 13177 14/870454 0 LOG: automatic vacuum of table "openbravo.public.ad_session_status": index scans: 0
pages: 0 removed, 235 remain
tuples: 0 removed, 14669 remain
buffer usage: 1090 hits, 673 misses, 4 dirtied
avg read rate: 6.745 MB/s, avg write rate: 0.040 MB/s
--
2018-06-29 17:24:55 CDT 13529 40/699086 0 LOG: automatic vacuum of table "openbravo.public.ad_session_status": index scans: 0
pages: 0 removed, 235 remain
tuples: 0 removed, 13039 remain
buffer usage: 1143 hits, 663 misses, 0 dirtied
avg read rate: 3.086 MB/s, avg write rate: 0.000 MB/s
All autovacuums are logged: log_autovacuum_min_duration=0.
There are no other manual vacuums in-between.
How can it be that if none of these two vacuums is removing any dead tuple, the remaining number of tuples decreases after 2nd one? Has PostgreSQL other ways to remove dead rows?
log_autovacuum_min_duration? – Laurenz Albe Jul 3 '18 at 15:12log_autovacuum_min_durationis 0 (I updated it in the question). In the log there are no other autovacuums for that table between those two entries, therefore I assume they are consecutive runs. – alostale Jul 4 '18 at 6:54