Re: ANALYZE after CREATE TABLE AS SELECT...

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Semyon Reyfman" <sreyfman(at)therealauthority(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ANALYZE after CREATE TABLE AS SELECT...
Date: 2015-02-26 19:05:44
Message-ID: 16810.1424977544@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Semyon Reyfman" <sreyfman(at)therealauthority(dot)com> writes:
> 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?

Yes.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Hanns Hartman 2015-02-26 19:29:22 Re: How is autovacuum affected by a change in year.
Previous Message Semyon Reyfman 2015-02-26 18:58:22 ANALYZE after CREATE TABLE AS SELECT...