| От | Tom Lane |
|---|---|
| Тема | Re: Partial Indices vs. mixing columns and functions |
| Дата | |
| Msg-id | 22179.995334332@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Partial Indices vs. mixing columns and functions (Hiroshi Inoue <Inoue@tpf.co.jp>) |
| Ответы |
Re: Partial Indices vs. mixing columns and functions
|
| Список | pgsql-general |
Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> What kind of expression is allowed as the predicate now ?
Anything that doesn't involve an aggregate or a subselect.
(But what the planner can recognize as matching a query's
WHERE clause is currently much more restricted, just ANDs
and ORs of simple VAR OP CONST clauses. This could be
improved in the future.)
> Both the functions used in functional indexes and the
> predicates used in partial indexes must be deterministic.
> Are users responsible for it ?
Yes. I don't see how the system could enforce that, without
prohibiting lots of useful cases.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера