Search Postgresql Archives

Re: when do I analyze after concurrent index creation?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Oct 18, 2013 at 9:12 PM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
dinesh kumar <dineshkumar02@xxxxxxxxx> writes:
> When we create an index, i believe the postgres engine it self update it's
> catalog about the index availability.

ANALYZE normally collects statistics about the contents of table columns.
Thus, adding (or removing) an index does not create any reason to
re-ANALYZE.

However ... if you have an index on an _expression_ (not just a simple
column value), that cues ANALYZE to collect statistics about the values of
that _expression_.  So re-analyzing is useful after creating such an index,
to give the planner a better idea of when to use that index.


Thank you Tom.
 
Whether you used CREATE INDEX CONCURRENTLY or some other way of creating
the index doesn't matter at all.

                        regards, tom lane

Regards,
Dinesh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux