| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | David Steele <david(at)pgmasters(dot)net> |
| Cc: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Semyon Reyfman <reyfmans(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: ANALYZE after CREATE TABLE AS SELECT... |
| Date: | 2015-02-27 01:24:52 |
| Message-ID: | 8445.1425000292@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
David Steele <david(at)pgmasters(dot)net> writes:
> On 2/26/15 5:23 PM, Alvaro Herrera wrote:
>> It isn't. It also doesn't create any indexes, which you might want to
>> do before analyze.
> Is it necessary to create indexes before analyzing?
> I usually do, just to be safe, but I thought statistics were based
> solely on sampling of the heap.
ANALYZE pays no attention to plain indexes. If you have any expression
indexes, it will collect stats for those expressions.
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2015-02-27 01:25:28 | Re: Triggers on foreign Postgres 9.3 tables in Postgres 9.4 |
| Previous Message | David Steele | 2015-02-27 01:21:24 | Re: ANALYZE after CREATE TABLE AS SELECT... |