Re: pre-proposal: type interfaces

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pre-proposal: type interfaces
Дата
Msg-id 25418.1256325366@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pre-proposal: type interfaces  (Greg Stark <gsstark@mit.edu>)
Ответы Re: pre-proposal: type interfaces  (Dimitri Fontaine <dfontaine@hi-media.com>)
Список pgsql-hackers
Greg Stark <gsstark@mit.edu> writes:
> I always thought it was strange that the GIST strategy numbers were
> completely meaningless. It does seem like assigning meaning to
> strategy numbers gradually as we learn new interrelated indexable
> strategies. We would still have a range of values for new non-standard
> semantics, but at least the common ones would be nailed down.

Well, the problem with that is that GIST strategy numbers are
historically an internal implementation detail for any particular
opclass, and so trying to standardize them now is going to mean lots
of incompatibility with third-party opclasses.

I'd feel more comfortable with being able to add some flags to an
opclass (or more likely an opfamily) that assert that its strategy
numbers agree with some convention or other.  Maybe a bitmap so
that there's room for multiple future conventions of this kind?
For instance it's certainly conceivable that a GIST class could
support both btree-compatible and overlaps operators.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: pre-proposal: type interfaces
Следующее
От: João Eugenio Marynowski
Дата:
Сообщение: Re: table corrupted