Re: Declarative partitioning grammar - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Declarative partitioning grammar
Date
Msg-id 200801121834.49265.peter_e@gmx.net
Whole thread Raw
In response to Re: Declarative partitioning grammar  (Jeff Cohen <jcohen@greenplum.com>)
Responses Re: Declarative partitioning grammar  (Jeff Cohen <jcohen@greenplum.com>)
List pgsql-hackers
Jeff Cohen wrote:
> In order to make such error checking 
> feasible, we would have to restrict the set of predicates you can use
> in the WHERE clause, so it wouldn't be completely general anyway.

Well, with an extensible system such as PostgreSQL you will need to have a 
partitioning scheme that can deal with extensions.  Perhaps people want to 
partition by XML, GIS, text-search data, or whatever someone might come up 
with in the future.

One possible way to achieve that might be to redefine your concepts of hash, 
list, and range in terms of operator classes (or operator families or other 
operator structures?).  Those have well-defined properties as to how the 
operators behave relative to each other, so checking the partition 
definitions for mutual exclusivity and other properties would be possible.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Some ideas about Vacuum
Next
From: Simon Riggs
Date:
Subject: Re: Declarative partitioning grammar