| От | Tom Lane |
|---|---|
| Тема | Re: "Constraint exclusion" is not general enough |
| Дата | |
| Msg-id | 3836.1154975901@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: "Constraint exclusion" is not general enough (Simon Riggs <simon@2ndquadrant.com>) |
| Список | pgsql-hackers |
Simon Riggs <simon@2ndquadrant.com> writes:
> To achieve the "indexed" partition pruning, we'd need
> - a way to specify that all constraints are mutually exclusive
> - a declarative approach for saying something like "arranged in date
> sequence"
> - preferably a way to have this happen at run-time so we can hard-plan a
> query with CURRENT_TIMESTAMP in the WHERE clause
Definitely a direction worth pursuing, but it seems like it would be a
completely separate code path from the existing constraint-checking
code. I'd imagine that instead of having to prove theorems about which
tables to scan, a declarative approach would let us "just know" what
to do.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера