Re: Index not being used for UPDATE?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Index not being used for UPDATE?
Дата
Msg-id 5975.1303926018@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Index not being used for UPDATE?  (Phoenix Kiula <phoenix.kiula@gmail.com>)
Список pgsql-general
Phoenix Kiula <phoenix.kiula@gmail.com> writes:
> Just want to check why, in an UPDATE sql, the JOIN condition is not making
> use of the index?
> [ whole-table update done with a hash join ]

That's a perfectly good plan.  Indexes typically help only when you want
to process just part of a table.

If you don't believe it, you can try forcing a different plan to be
chosen (see enable_hashjoin et al), but more than likely it'll be
slower.

            regards, tom lane

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

Предыдущее
От: Andy Colson
Дата:
Сообщение: Re: Needs Suggestion
Следующее
От: Andy Colson
Дата:
Сообщение: Re: Index not being used for UPDATE?