Re: Declarative partitioning grammar
От | Tom Lane |
---|---|
Тема | Re: Declarative partitioning grammar |
Дата | |
Msg-id | 12127.1200368728@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Declarative partitioning grammar (Jeff Cohen <jcohen@greenplum.com>) |
Ответы |
Re: Declarative partitioning grammar
|
Список | 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 по дате отправления: