Re: Declarative partitioning grammar

Nikhils <nikkhils@gmail.com>

From: NikhilS <nikkhils@gmail.com>
To: "Jeff Cohen" <jcohen@greenplum.com>
Cc: "Warren Turkal" <turkal@google.com>, "Ron Mayer" <rm_pg@cheapcomplexdevices.com>, "Gavin Sherry" <swm@alcove.com.au>, pgsql-hackers@postgresql.org
Date: 2008-01-12T10:31:19Z
Lists: pgsql-hackers
Hi,

> We did look at allowing general functions for partitioning and this
> was one concern.  The other is that we want to enforce that a row
> only gets inserted into a single partition, so we wanted a
> declarative syntax where it was relatively easy to check that range
> and list specifications don't overlap.
>

Detection of mutually exclusive ranges might not turn out to be so easy
afterall. I think there is some code in the constraint_exclusion area which
might help out in this.

Regards,
Nikhils
-- 
EnterpriseDB               http://www.enterprisedb.com