Re: constraint checking on partitions

Поиск
Список
Период
Сортировка
От Chris Spotts
Тема Re: constraint checking on partitions
Дата
Msg-id 00bb01ca00cd$c4bb10d0$4e313270$@com
обсуждение исходный текст
Ответ на Re: constraint checking on partitions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
>
> > If I ran a select * from A where date1 >= '2009-07-02' and date1 <
> > '2009-07-15' then I would think it wouldn't check O.
>
[Spotts, Christopher]
I oversimplified this too much - but I figured out what was happening.
If you added the June table as well and added a separate NOT constraint for
June, and then wrote the query
"SELECT * from A where date1 >= '2009-06-01' and date1 < '2009-07-05'" the
planner can't match them to individual constraints, so it doesn't exclude.
Theoretically the planner could logically "AND" them together to get better
exclusion, but it must not be.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: constraint checking on partitions
Следующее
От: Tguru
Дата:
Сообщение: Re: Trying to find a low-cost program for Data migration and ETL