| От | Tom Lane |
|---|---|
| Тема | Re: Problem with index in OR'd expression |
| Дата | |
| Msg-id | 9115.1167170090@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Problem with index in OR'd expression (postgresql.org@tgice.com) |
| Ответы |
Re: Problem with index in OR'd expression
|
| Список | pgsql-general |
postgresql.org@tgice.com writes:
> I would submit that in that situation, it would be
> reasonable for a user to expect my suggested syntax to still use the
> indicated indexes.
The only thing that will make that work is if "indexed_col IS NULL" were
an indexable condition, which it isn't because the PG index API only
supports "indexed_col operator something" as an indexable condition
(IS NULL is not an operator, and even if it were, there's no "something"
on its righthand side). Fixing this has been on the radar screen for
awhile, but it's not done, largely for lack of agreement about a
reasonably clean way to change that API.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера