Re: Push predicate down in view containing window function
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Push predicate down in view containing window function |
| Дата | |
| Msg-id | 32583.1384469029@sss.pgh.pa.us обсуждение |
| Ответ на | Push predicate down in view containing window function (Philippe Girolami <philippe.girolami@sensorly.com>) |
| Ответы |
Re: Push predicate down in view containing window function
|
| Список | pgsql-general |
Philippe Girolami <philippe.girolami@sensorly.com> writes:
> Hello,
> Using postgres 9.1.9, I have a view that uses a window function. I then query that view with a predicate on one of
thecolumns. Unfortunately, the predicate doesn't get pushed down into the view.
> Given that the predicate applies to a column that's being partitionned on, why wouldn't the optimizer push the
predicatedown ?
Because there is zero optimization around window functions right now.
It certainly isn't smart enough to decide that it'd be safe to push
down a constraint that only mentions partitioning columns.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера