Re: Declarative partitioning grammar - Mailing list pgsql-hackers

From Gavin Sherry
Subject Re: Declarative partitioning grammar
Date
Msg-id 20080114234130.GJ7216@europa.idg.com.au
Whole thread Raw
In response to Re: Declarative partitioning grammar  (NikhilS <nikkhils@gmail.com>)
List 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



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Bug: Unreferenced temp tables disables vacuum to update xid
Next
From: Alvaro Herrera
Date:
Subject: Re: Bug: Unreferenced temp tables disables vacuum to update xid