Re: pgbench -i order of vacuum

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: pgbench -i order of vacuum
Дата
Msg-id 000d01cd6687$f766f3f0$e634dbd0$@kapila@huawei.com
обсуждение исходный текст
Ответ на pgbench -i order of vacuum  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-hackers
> 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. So if you do it
before creation of index pgbench might behave 
different.
In specific, from function do_analyze_rel(), it will not call
compute_index_stats() if you execute the command before
Creation of index.

With Regards,
Amit Kapila.




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: row literal problem
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: pgbench -i order of vacuum