Re: Automating Partitions in PostgreSQL - Query on syntax - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Automating Partitions in PostgreSQL - Query on syntax
Date
Msg-id 603c8f070904211038g68e79c5brab7f485dca849e74@mail.gmail.com
Whole thread Raw
In response to Re: Automating Partitions in PostgreSQL - Query on syntax  (vacuum@quantentunnel.de)
Responses Re: Automating Partitions in PostgreSQL - Query on syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Jaime Casanova
Date:
Subject: per db collate syntax
Next
From: Robert Haas
Date:
Subject: Re: Automating Partitions in PostgreSQL - Query on syntax