Re: BUG #5932: CLUSTER doesn't update n_dead_tup

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Andy Lester <andy(at)petdance(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5932: CLUSTER doesn't update n_dead_tup
Date: 2011-09-06 14:08:59
Message-ID: 201109061408.p86E8xZ25640@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message hubert depesz lubaczewski 2011-09-06 15:12:54 Re: psql doesn't reuse -p after backend fail
Previous Message Andy Lester 2011-09-06 14:07:46 Re: BUG #5932: CLUSTER doesn't update n_dead_tup