Re: Why does autovacuum clean fewer rows than I expect?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Nick Cabatoff <nick(dot)cabatoff(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Why does autovacuum clean fewer rows than I expect?
Date: 2014-07-03 21:35:44
Message-ID: 3380.1404423344@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Nick Cabatoff <nick(dot)cabatoff(at)gmail(dot)com> writes:
> I'm having trouble making sense of the these two autovacuum log entries.
> I'm running PostgreSQL 8.4.

8.4.what?

It'd probably be a good idea to monitor the counts in pg_stat_all_tables
for the troublesome table(s). I suspect there are a whole lot of HOT
updates going on in this table, which'd account for autoanalyze activity
happening even though autovacuum finds few dead tuples to remove. That
still doesn't directly explain physical table bloat, but it might be
a piece of the puzzle.

Also, have you had any database crashes in between these autovacuums?
I'm wondering if the WAL-replay issue fixed in commits 6f2aead1f and
siblings could have produced the bloat.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nick Cabatoff 2014-07-03 22:41:59 Re: Why does autovacuum clean fewer rows than I expect?
Previous Message Quinlan Pfiffer 2014-07-03 21:10:08 Re: C++ Background Workers?