Re: Partial index where clause not filtering through
В списке pgsql-performance по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Partial index where clause not filtering through |
| Дата | |
| Msg-id | 2619.1055772660@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Partial index where clause not filtering through ("Jim C. Nasby" <jim@nasby.net>) |
| Ответы |
Re: Partial index where clause not filtering through
|
| Список | pgsql-performance |
"Jim C. Nasby" <jim@nasby.net> writes:
> Well, it would only need to make the checks if the table had partial
> indexes. Even then, it probably makes sense to only do the check if
> other query planning steps decide it would be useful to use the partial
> index.
You have that backwards. Planning is bottom-up, so we have to determine
the relevant indexes *first*. Accordingly, a partial index is a
performance drag on every query that uses its table, as we check to
see if the partial index qual is satisfied by the query's WHERE clause.
That's why I don't want it to be any slower than it is ...
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера