Re: pre-proposal: type interfaces

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pre-proposal: type interfaces
Дата
Msg-id 29044.1256334930@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pre-proposal: type interfaces  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> On Fri, 2009-10-23 at 16:25 -0400, Tom Lane wrote:
>> Conceivably we could get different left-of
>> operators out of different opclasses, but if they don't behave
>> effectively the same, the user has messed up the opclasses.

> It would probably be worthwhile to make an attempt to throw a useful
> error there, but I agree it's not really a problem.

Sure, right after we solve the halting problem ;-).  The point I
was trying to make is that getting different operators is not wrong.
It's only wrong if their behavior isn't consistent with what the
opclass asserts, and there's no practical way to determine that.
We have to trust the opclass maker.  (This is one of the main
reasons why CREATE OPERATOR CLASS is superuser-only.)
        regards, tom lane


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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: pre-proposal: type interfaces
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: per table random-page-cost?