Re: Does Type Have = Operator?

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Does Type Have = Operator?
Дата
Msg-id CACjxUsN7PYV1HAvjzVt19qbHcrNM1kdF5u1p4cRfeFV5nEemJg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Does Type Have = Operator?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: Does Type Have = Operator?  ("David E. Wheeler" <david@justatheory.com>)
Список pgsql-hackers
On Wed, May 11, 2016 at 12:01 PM, David G. Johnston
<david.g.johnston@gmail.com> wrote:

> Its hard to imagine defining "=" to mean something different in logic,
> though, without intentionally trying to be cryptic.

As long as you don't assume too much about *what* is equal.

test=# select '(1,1)(2,2)'::box = '(-4.5,1000)(-2.5,1000.5)'::box;?column?
----------t
(1 row)

-- 
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Does Type Have = Operator?
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Does Type Have = Operator?