Re: Does Type Have = Operator? - Mailing list pgsql-hackers

From Kevin Grittner
Subject Re: Does Type Have = Operator?
Date
Msg-id CACjxUsN7PYV1HAvjzVt19qbHcrNM1kdF5u1p4cRfeFV5nEemJg@mail.gmail.com
Whole thread Raw
In response to Re: Does Type Have = Operator?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Responses Re: Does Type Have = Operator?  ("David E. Wheeler" <david@justatheory.com>)
List 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 by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Does Type Have = Operator?
Next
From: "David E. Wheeler"
Date:
Subject: Re: Does Type Have = Operator?