Re: Tables with lots of dead tuples despite autovacuum

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: Wells Oliver <wellsoliver(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Tables with lots of dead tuples despite autovacuum
Date: 2012-09-13 02:18:41
Message-ID: CAMkU=1zTFNsCbuAtTDMFBKdf_BDPrN5bkkP0zfz11AmYh8ZWjA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Sep 12, 2012 at 5:00 PM, Wells Oliver <wellsoliver(at)gmail(dot)com> wrote:
> We have a few tables that are updated nightly on the order of deleting and
> inserting 500k records.

Out of how many in total?

> 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.

That is one day's worth. If the tables undergo churn once a day, and
get vacuum once a day, that seems like a nice steady state. I
wouldn't worry about it.

Cheers,

Jeff

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Wells Oliver 2012-09-13 02:22:53 replication requires redundant rule in pga_hba?
Previous Message David Fetter 2012-09-13 01:48:16 Re: [GENERAL] Estimated rows question