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

From Semyon Reyfman
Subject ANALYZE after CREATE TABLE AS SELECT...
Date
Msg-id 00c801d051f6$32fa8d30$98efa790$@therealauthority.com
Whole thread Raw
Responses Re: ANALYZE after CREATE TABLE AS SELECT...
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 new 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: Tong Pham
Date:
Subject: Re: [postgresql 9.3.5] autovacuums stuck on non-existent pg_toast tables
Next
From: Tom Lane
Date:
Subject: Re: ANALYZE after CREATE TABLE AS SELECT...