Re: Declarative partitioning grammar - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Declarative partitioning grammar
Date
Msg-id 12127.1200368728@sss.pgh.pa.us
Whole thread Raw
In response to Re: Declarative partitioning grammar  (Jeff Cohen <jcohen@greenplum.com>)
Responses Re: Declarative partitioning grammar  (Gavin Sherry <swm@alcove.com.au>)
List pgsql-hackers
Jeff Cohen <jcohen@greenplum.com> writes:
> In the proposed solution, hash and list partitions work for all types  
> that support an equality operator, and range partitions work for all  
> types that support fully-ordered comparison.

Surely a hashing method would require a *hashable* equality operator,
ie a hash opclass; likewise range partitions would demand a matching
btree opclass.  You could do list partitions with an equality operator
of either kind.

Essentially all of the system's current knowledge about the properties
of specific operators is encoded as operator classes for one of these
two built-in index types.  If you want to make assumptions about the
behavior of an operator, it really needs to be founded on these types of
opclasses --- or else you're buying into inventing a comparable amount
of infrastructure for some other organizational concept.

I think Peter's point was that you might want to think about
generalizing your concepts so that other kinds of operator classes could
someday serve as the foundations for other kinds of partitioning rules.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SSL over Unix-domain sockets
Next
From: Bruce Momjian
Date:
Subject: Re: [COMMITTERS] pgsql: Most recent Postgres version is 8.2.6, per report from Robert