Outer joins aren't working with views

From: pgsql-bugs(at)postgresql(dot)org
To: pgsql-bugs(at)postgresql(dot)org
Subject: Outer joins aren't working with views
Date: 2000-12-15 12:44:47
Message-ID: 200012151244.eBFCilE09263@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

Grzegorz Mucha (mucher(at)tigana(dot)pl) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
Outer joins aren't working with views

Long Description
It seems outer joins are not working at all(they work as inner joins so far).
For example, see below:
(the result is identical for inner and outer join) - two rows fetched from db(as I recall, there should be one more row having t1.id=3)

Sample Code
create table t1(id serial primary key);
create table t2(id2 serial primary key, id int);
insert into t1 values (1);
insert into t1 values (2);
insert into t1 values (3);
insert into t2 (id) values(1);
insert into t2 (id) values(2);
select t1.*, t2.* from t1 natural left outer join t2;

No file was uploaded with this report

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2000-12-15 13:58:06 Bug in CAST() with time data types
Previous Message Thomas Lockhart 2000-12-15 06:06:57 Re: compilation error on linux mandrake

Browse pgsql-hackers by date

  From Date Subject
Next Message Oleg Bartunov 2000-12-15 15:45:54 Re: index support for arrays (GiST)
Previous Message Oleg Bartunov 2000-12-15 12:08:26 Re: index support for arrays (GiST)