Re: Auto ANALYZE criteria - Mailing list pgsql-performance

From Joe Miller
Subject Re: Auto ANALYZE criteria
Date
Msg-id AANLkTi=qOCZox4n8V6YqqapuQRGN9p4QGeAC2xjc_aLt@mail.gmail.com
Whole thread Raw
In response to Re: Auto ANALYZE criteria  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-performance
On Mon, Sep 20, 2010 at 6:28 PM, Kevin Grittner
<Kevin.Grittner@wicourts.gov> wrote:
> Joe Miller <joe.d.miller@gmail.com> wrote:
>
>> I can set up a cron job to run the ANALYZE manually, but it seems
>> like the autovacuum daemon should be smart enough to figure this
>> out on its own.  Deletes can have as big an impact on the stats as
>> inserts and updates.
>
> But until the deleted rows are vacuumed from the indexes, an index
> scan must read all the index entries for the deleted tuples, and
> visit the heap to determine that they are not visible.  Does a
> manual run of ANALYZE without a VACUUM change the stats much for
> you, or are you running VACUUM ANALYZE?
>
> -Kevin
>

The autovacuum is running correctly, so the deleted rows are being
removed.  All I'm doing is an ANALYZE, not VACUUM ANALYZE.

pgsql-performance by date:

Previous
From: Joe Miller
Date:
Subject: Re: Auto ANALYZE criteria
Next
From: Ogden
Date:
Subject: Query much faster with enable_seqscan=0