Re: Does Type Have = Operator?

From: Kevin Grittner <kgrittn(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, "David E(dot) Wheeler" <david(at)justatheory(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Does Type Have = Operator?
Date: 2016-05-11 17:19:31
Message-ID: CACjxUsN7PYV1HAvjzVt19qbHcrNM1kdF5u1p4cRfeFV5nEemJg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 11, 2016 at 12:01 PM, David G. Johnston
<david(dot)g(dot)johnston(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message David E. Wheeler 2016-05-11 17:23:05 Re: Does Type Have = Operator?
Previous Message David G. Johnston 2016-05-11 17:01:46 Re: Does Type Have = Operator?