pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alex Pilosov <alex@pilosoft.com>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [SQL] outer joins strangeness
Date: Mon, 24 Sep 2001 13:00:23 -0400 (EDT)
Message-ID: <Pine.BSO.4.10.10109241257190.3287-100000@spider.pilosoft.com> (raw)
In-Reply-To: <Pine.BSF.4.21.0109240902180.5229-100000@megazone23.bigpanda.com>

[moved to hackers]

On Mon, 24 Sep 2001, Stephan Szabo wrote:

> > Postgres should understand that left outer join does not constrict join
> > order...
> 
> But it can.  If your condition was a joining between the other table
> and the right side of the left outer join, you'd have the same condition
> as a right outer join and the left side.  The real condition I think
> is that you can join a non-explicitly joined table to the <x> side of an
> <x> outer join before the outer join but not to the other side.
Yes yes. Maybe I was imprecise. Right join and left join are the same,
only the ordering is different. Lets call the table that will always be
included in a join a "complete" table. 

Then, joins should not impose join order on "complete" table. Of course,
joins against 'incomplete' table must be done only after outer join is
done.

Anyone who can actually fix it? :)
-alex





view thread (6+ messages)  latest in thread

Message-ID: <Pine.BSO.4.10.10109241257190.3287-100000@spider.pilosoft.com>
Permalink:  ../Pine.BSO.4.10.10109241257190.3287-100000@spider.pilosoft.com/
Also on:    postgresql.org/message-id/Pine.BSO.4.10.10109241257190.3287-100000@spider.pilosoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: alex@pilosoft.com, sszabo@megazone23.bigpanda.com, pgsql-hackers@postgresql.org
  Subject: Re: [SQL] outer joins strangeness
  In-Reply-To: <Pine.BSO.4.10.10109241257190.3287-100000@spider.pilosoft.com>
  References: <Pine.BSF.4.21.0109240902180.5229-100000@megazone23.bigpanda.com> <Pine.BSO.4.10.10109241257190.3287-100000@spider.pilosoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox