Re: Creating a VIEW with a POINT column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Creating a VIEW with a POINT column
Дата
Msg-id 26234.1214441869@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Creating a VIEW with a POINT column  (Mark Mielke <mark@mark.mielke.cc>)
Список pgsql-hackers
Mark Mielke <mark@mark.mielke.cc> writes:
> The problem here seems to that "point" should have an equality operator?

For starters ;-).  The current implementation of UNION requires it to
have a complete btree opclass.  In principle I suppose we could
implement hash-based DISTINCT, which would require only a hash opclass,
but that isn't there either.

Note that the only way that the system knows that an operator has
the semantics of equality is for it to be the equality member of
a btree or hash opclass; there isn't any other representation of
operator semantics in Postgres.  So the opclasses not only provide
necessary execution infrastructure, but also the justification
for using a particular operator to define DISTINCT-ness.
        regards, tom lane


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

Предыдущее
От: "Dickson S. Guedes"
Дата:
Сообщение: Re: TODO item: Have psql show current values for a sequence
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CVS Head psql bug?