Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id E834D86A54A for ; Wed, 18 Jan 2012 17:14:28 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rncpt-0000Ls-Hn for pgsql-bugs@postgresql.org; Wed, 18 Jan 2012 21:14:29 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Rncph-00030c-4o for pgsql-bugs@postgresql.org; Wed, 18 Jan 2012 21:14:13 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1Rncpg-00077z-S7 for pgsql-bugs@postgresql.org; Wed, 18 Jan 2012 21:14:12 +0000 Date: Wed, 18 Jan 2012 21:14:12 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6401: IS DISTINCT FROM improperly compares geomoetric datatypes To: pgsql-bugs@postgresql.org From: kenaniah@gmail.com X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201201/131 X-Sequence-Number: 32198 The following bug has been logged on the website: Bug reference: 6401 Logged by: Kenaniah Cerny Email address: kenaniah@gmail.com PostgreSQL version: 9.1.2 Operating system: Centos 6 x86_64 Description: = ---- SELECT point(2, 3) IS DISTINCT FROM point(2, 3); ---- ERROR: operator does not exist: point =3D point LINE 1: SELECT point(2, 3) IS DISTINCT FROM point(2, 3) ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts. ---- According to the docs (http://www.postgresql.org/docs/current/static/functions-geometry.html#FUNC= TIONS-GEOMETRY), the "same as" operator is the ~=3D operator, not the =3D operator. = This problem cascades to the comparison of complex types, such as "OLD IS DISTINCT FROM NEW" in the context of plpgsql. =