Re: Problem with constraint exclusion on partitions

Поиск
Список
Период
Сортировка
От David G Johnston
Тема Re: Problem with constraint exclusion on partitions
Дата
Msg-id 1419057427324-5831548.post@n5.nabble.com
обсуждение исходный текст
Ответ на Problem with constraint exclusion on partitions  ("Mike Pultz" <mike@mikepultz.com>)
Ответы Re: Problem with constraint exclusion on partitions  ("Mike Pultz" <mike@mikepultz.com>)
Список pgsql-general
Mike Pultz wrote
> Is there something I'm missing?

What version are you using?

Now() is a volatile function so the planner cannot omit partitions.

Replace that with a constant and now it can.

David J.




--
View this message in context:
http://postgresql.nabble.com/Problem-with-constraint-exclusion-on-partitions-tp5831541p5831548.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


В списке pgsql-general по дате отправления:

Предыдущее
От: "Mike Pultz"
Дата:
Сообщение: Problem with constraint exclusion on partitions
Следующее
От: "Mike Pultz"
Дата:
Сообщение: Re: Problem with constraint exclusion on partitions