Re: Bug #795: null resulting from left join corrupts select - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #795: null resulting from left join corrupts select
Date
Msg-id 27813.1034260233@sss.pgh.pa.us
Whole thread Raw
In response to Bug #795: null resulting from left join corrupts select  (pgsql-bugs@postgresql.org)
List pgsql-bugs
pgsql-bugs@postgresql.org writes:
> select
>  *
> from
>  test1 left join test2 on (test1.test1_id = test2.test1_id)
> where
>  test1.test1_id = test2.test1_id;

Hm.  I think what is happening is that the planner is (mistakenly)
deciding that the where-clause and on-clause are equivalent, and
so dropping the second one ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Joe Conway
Date:
Subject: Re: user name lost from dictionary
Next
From: Ruslan A Dautkhanov
Date:
Subject: Re: Creating server-side functions: one simple error