Can't join on null values - Mailing list pgsql-bugs

From David Newall
Subject Can't join on null values
Date
Msg-id 1089105988.5002.12.camel@localhost.localdomain
Whole thread Raw
Responses Re: Can't join on null values  (Peter Eisentraut <peter_e@gmx.net>)
Re: Can't join on null values  (Pavel Stehule <stehule@kix.fsv.cvut.cz>)
Re: Can't join on null values  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
List pgsql-bugs
PostgreSQL version:  7.4.3 (RPMs from ftp.au.postgresql.org)

Operating Sysem: Fedora Core 1

CREATE TABLE t1 (i INTEGER, j INTEGER);
INSERT INTO t1 VALUES (1, NULL);
CREATE TABLE t2 AS SELECT * FROM t1;
SELECT * FROM t1 JOIN t2 USING (i, j);
 i | j
---+---
(0 rows)

I believe the one row, which is identically present in both table,
should be selected.  The problem occurs because of the NULL value.

pgsql-bugs by date:

Previous
From: "Dario V. Fassi"
Date:
Subject: Re: [JDBC] Error in DatabaseMetaData.getColumns() with Views
Next
From: David Newall
Date:
Subject: UNIQUE not honoured for NULL