Re: Automating Partitions in PostgreSQL - Query on syntax

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Automating Partitions in PostgreSQL - Query on syntax
Дата
Msg-id 603c8f070904211038g68e79c5brab7f485dca849e74@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Automating Partitions in PostgreSQL - Query on syntax  (vacuum@quantentunnel.de)
Ответы Re: Automating Partitions in PostgreSQL - Query on syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
>> > The big win that is associated with table partitioning is using
>> > constraint exclusion to avoid unnecessary partitions scans.
>
> there is no reason for not using the 'CASE condition' for constraint exclusion.

There is if you can't rely on the rows to be in the right partition.
Allowing DDL commands to change the partitioning layout without moving
the rows is going cause a lot of problems for you, I think.

I'm also not sure how skillful the constraint exclusion logic is at
proving theorems when CASE statements are involved.  It might be good
to test that before going too far with this approach.

...Robert


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

Предыдущее
От: Jaime Casanova
Дата:
Сообщение: per db collate syntax
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Automating Partitions in PostgreSQL - Query on syntax