Re: pgbench -i order of vacuum - Mailing list pgsql-hackers

From Jeff Janes
Subject Re: pgbench -i order of vacuum
Date
Msg-id CAMkU=1xqhCpBeBXjO3oEnh4q4emDSZVc6hrLyzMcHQ6Y15-6Fw@mail.gmail.com
Whole thread Raw
In response to pgbench -i order of vacuum  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: pgbench -i order of vacuum
List pgsql-hackers
On Fri, Jul 20, 2012 at 7:57 AM, Amit Kapila <amit.kapila@huawei.com> wrote:
>> From: pgsql-hackers-owner@postgresql.org
> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Jeff Janes
>> Sent: Friday, July 20, 2012 5:36 AM
>
>
>> Is there a reason to vacuum the pgbench_* tables after the indexes on them
> are built, rather than before?
>
>> Since the indexes are on fresh tables, they can't have anything that needs
> to be cleaned.
>
> The command it executes is "vacuum analyze ..", so it will do analyze also
> on table which means
> it will collect stats corresponding to table and index.

Are there stats collected on indexes?  I thought all stats were on
tables only, and the only reason to visit the index was to remove
all-visible-dead entries.

Cheers,

Jeff


pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: pgbench -i order of vacuum
Next
From: Robert Haas
Date:
Subject: Re: Event Triggers reduced, v1