ANALYZE after CREATE TABLE AS SELECT... - Mailing list pgsql-general

From Semyon Reyfman
Subject ANALYZE after CREATE TABLE AS SELECT...
Date
Msg-id 00ae01d051e4$f0849b00$d18dd100$@gmail.com
Whole thread Raw
Responses Re: ANALYZE after CREATE TABLE AS SELECT...  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-general

Hi,

 

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.

 

Thanks

 

Simon

pgsql-general by date:

Previous
From: Jerry Sievers
Date:
Subject: Re: Triggers and scalability in high transaction tables.
Next
From: John R Pierce
Date:
Subject: Re: Triggers and scalability in high transaction tables.