Re: [PERFORM] GIN index not used if created in the same transaction as query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PERFORM] GIN index not used if created in the same transaction as query
Дата
Msg-id 437.1495210198@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PERFORM] GIN index not used if created in the same transactionas query  (Adam Brusselback <adambrusselback@gmail.com>)
Список pgsql-performance
Adam Brusselback <adambrusselback@gmail.com> writes:
> Is there any easy way I can know if an index is usable or not? Are there
> any catalog views or anything I could check that in?

IIRC, you can look at pg_index.indcheckxmin --- if that's set, then
the index had broken HOT chains during creation and may not be usable
right away.  Telling whether your own transaction can use it is harder
from SQL level, but if you're in the same transaction that made the
index then the answer is probably always "no" :-(

            regards, tom lane


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

Предыдущее
От: Adam Brusselback
Дата:
Сообщение: Re: [PERFORM] GIN index not used if created in the same transactionas query
Следующее
От: Jeff Janes
Дата:
Сообщение: [PERFORM] pg_stat_statements with fetch