Re: BUG #5932: CLUSTER doesn't update n_dead_tup - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #5932: CLUSTER doesn't update n_dead_tup
Date
Msg-id 201109061408.p86E8xZ25640@momjian.us
Whole thread Raw
In response to Re: BUG #5932: CLUSTER doesn't update n_dead_tup  (Andy Lester <andy@petdance.com>)
List pgsql-bugs
Andy Lester wrote:
>
> On Sep 6, 2011, at 9:04 AM, Bruce Momjian wrote:
>
> > Well, if you TRUNCATE I don't think it updates the statistics either.  I
> > think we assume the autovacuum system will analyse the new table soon.
>
>
> When I brought this up in IRC, I recall that that sentiment was
> expressed, along with the standard "What do you mean you're not running
> autovacuum?"

Well, if you are not running autovacuum you should be running vacuum and
analyze manually as needed.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

pgsql-bugs by date:

Previous
From: Andy Lester
Date:
Subject: Re: BUG #5932: CLUSTER doesn't update n_dead_tup
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: psql doesn't reuse -p after backend fail