Re: Questions regarding indexes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Questions regarding indexes
Дата
Msg-id 11281.1232137415@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Questions regarding indexes  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список pgsql-general
"Scott Marlowe" <scott.marlowe@gmail.com> writes:
> The order doesn't matter.  Analyze doesn't know anything about the
> indexes, it knows about the fields / tables.  I.e. if you run analyze,
> then create the index, you get the same basic result as if you create
> the index then run analyze.

There is an exception to that statement, which is indexes on functions
(expressions).  Existence of such an index prompts analyze to gather
stats about the indexed expression.  For plain column indexes, you're
right, it doesn't matter.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Query sometimes takes down server
Следующее
От: Jason Long
Дата:
Сообщение: Re: Query sometimes takes down server