Re: ANALYZE after CREATE TABLE AS SELECT...

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: ANALYZE after CREATE TABLE AS SELECT...
Дата
Msg-id 20150226222335.GF2384@alvh.no-ip.org
обсуждение исходный текст
Ответ на ANALYZE after CREATE TABLE AS SELECT...  ("Semyon Reyfman" <reyfmans@gmail.com>)
Ответы Re: ANALYZE after CREATE TABLE AS SELECT...  (David Steele <david@pgmasters.net>)
Список pgsql-general
Semyon Reyfman wrote:

> When I create a table with "CREATE TABLE name AS SELECT." statement and
> immediately afterward use this new table in a query does it make sense to
> run ANALYZE on the table in between?  It appears that postgres should be
> able to collect very detailed statistics while emitting the table but I am
> not sure if this is done.

It isn't.  It also doesn't create any indexes, which you might want to
do before analyze.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Triggers and scalability in high transaction tables.
Следующее
От: Tim Uckun
Дата:
Сообщение: Re: Triggers and scalability in high transaction tables.