Re: join removal - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: join removal
Date
Msg-id 162867791003290133i30f42b89ha084ab67ac6bf007@mail.gmail.com
Whole thread Raw
In response to Re: join removal  (Marko Tiikkaja <marko.tiikkaja@cs.helsinki.fi>)
List pgsql-hackers
2010/3/29 Marko Tiikkaja <marko.tiikkaja@cs.helsinki.fi>:
> On 2010-03-29 11:19 +0200, Pavel Stehule wrote:
>> postgres=# explain select  a from a left join b on true;

you have a true.

I forgot SELECT DISTINCT

regards

Pavel
>
> This is effectively a cross join and it would give wrong answers.  Try
> SELECT a FROM a LEFT JOIN b ON a.a = b.b;
>
>
> Regards,
> Marko Tiikkaja
>


pgsql-hackers by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: join removal
Next
From: Simon Riggs
Date:
Subject: enable_joinremoval