pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@commandprompt.com>
To: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Cc: kenaniah <kenaniah@gmail.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #6401: IS DISTINCT FROM improperly compares geomoetric datatypes
Date: Thu, 19 Jan 2012 10:30:44 -0300
Message-ID: <1326979145-sup-7356@alvh.no-ip.org> (raw)
In-Reply-To: <4F17EFA0.6050903@enterprisedb.com>
References: <E1Rncpg-00077z-S7@wrigleys.postgresql.org>
	<4F17EFA0.6050903@enterprisedb.com>


Excerpts from Heikki Linnakangas's message of jue ene 19 07:25:36 -0300 2012:

> Frankly that's such a rare corner case that I'm not very enthusiastic 
> about fixing it. One idea would be to look up the type's b-tree sort 
> operators, and pick the equality operator from there. But point datatype 
> doesn't have b-tree sort operators, either, so it wouldn't help in this 
> case.

It doesn't have a hash opclass either, which could be used as a fallback
in case there's no btree.  Point cannot obviously have a btree opclass
(no inequalities), but a hash one seems possible.

I think the use case of IS NOT DISTINCT FROM for rowtypes in triggers is
a valid one.

-- 
Álvaro Herrera <alvherre@commandprompt.com>
The PostgreSQL Company - Command Prompt, Inc.
PostgreSQL Replication, Consulting, Custom Development, 24x7 support



view thread (6+ messages)  latest in thread

Message-ID: <1326979145-sup-7356@alvh.no-ip.org>
Permalink:  ../1326979145-sup-7356@alvh.no-ip.org/
Also on:    postgresql.org/message-id/1326979145-sup-7356@alvh.no-ip.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: alvherre@commandprompt.com, heikki.linnakangas@enterprisedb.com, kenaniah@gmail.com
  Subject: Re: BUG #6401: IS DISTINCT FROM improperly compares geomoetric datatypes
  In-Reply-To: <1326979145-sup-7356@alvh.no-ip.org>
  References: <E1Rncpg-00077z-S7@wrigleys.postgresql.org> <4F17EFA0.6050903@enterprisedb.com> <1326979145-sup-7356@alvh.no-ip.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox