Re: Not Picking Index

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Not Picking Index
Дата
Msg-id 3481.1171654067@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Not Picking Index  ("George Pavlov" <gpavlov@mynewplace.com>)
Список pgsql-performance
"George Pavlov" <gpavlov@mynewplace.com> writes:
>> In PG 8.2 and up there is a sneakier way to do it that won't acquire
>> any more lock than the statement-under-test does:
>>
>> begin;
>> update pg_index set indisvalid = false
>> where indexrelid = 'soandso'::regclass;
>> explain analyze ...;
>> rollback;

> this really smacks of that four-letter word that starts with h... -- i
> am glad we have finally come around on the subject :-)

indisvalid isn't a hint; it was necessary to make CREATE INDEX CONCURRENTLY
work.  But if you want to (mis?)use it as a hint, you can ...

            regards, tom lane

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

Предыдущее
От: Mark Stosberg
Дата:
Сообщение: Re: reindex vs 'analyze'
Следующее
От: Andreas Tille
Дата:
Сообщение: How to debug performance problems