Tables with lots of dead tuples despite autovacuum

From: Wells Oliver <wellsoliver(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Tables with lots of dead tuples despite autovacuum
Date: 2012-09-13 00:00:17
Message-ID: CAOC+FBVHxMRmdK0RJtisObi8ozv_M00BPMVjvokj+Ssmcc40jw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

We have a few tables that are updated nightly on the order of deleting and
inserting 500k records.

I assumed autovacuum would do its thing and clean up the dead tuples, but
in looking at pg_stat_user_tables, I notice there are lots and lots of dead
tuples, on the order of a 500-600k.

What can I do about this? Why isn't autovacuum cleaning these tables? Is
this number of dead tuples acceptable?

Lastly, would it make sense to do a weekly full manual vacuum + analyze?

Thanks.

--
Wells Oliver
wellsoliver(at)gmail(dot)com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2012-09-13 00:04:58 Re: Amazon High I/O instances
Previous Message Sébastien Lorion 2012-09-12 23:49:30 Re: Amazon High I/O instances