Re: Declarative partitioning grammar

Gavin Sherry <swm@alcove.com.au>

From: Gavin Sherry <swm@alcove.com.au>
To: NikhilS <nikkhils@gmail.com>
Cc: Jeff Cohen <jcohen@greenplum.com>, Warren Turkal <turkal@google.com>, Ron Mayer <rm_pg@cheapcomplexdevices.com>, pgsql-hackers@postgresql.org
Date: 2008-01-14T23:41:30Z
Lists: pgsql-hackers
On Sat, Jan 12, 2008 at 04:01:19PM +0530, NikhilS wrote:
> 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.

In some prototyping code it didn't seem too difficult but if we've made
a mistake we might have to look at the CE code.

Thanks,

Gavin