Re: [HACKERS] Enhancing PGSQL to be compatible with Informix SQL

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: "Ansley, Michael" <Michael(dot)Ansley(at)intec(dot)co(dot)za>
Cc: "'The Hermit Hacker '" <scrappy(at)hub(dot)org>, "'Don Baccus '" <dhogaza(at)pacifier(dot)com>, "'Rod Chamberlin '" <rod(at)querix(dot)com>, "'pgsql-hackers(at)postgreSQL(dot)org '" <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] Enhancing PGSQL to be compatible with Informix SQL
Date: 2000-01-06 22:04:16
Message-ID: 200001062204.RAA22918@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> SELECT blah, blah, blah
> FROM t1, t2, t3, t4
> WHERE t1.start_date BETWEEN t2.start_date (+) AND t2.end_date (+)
> AND t1.y = t2.y (+)
> AND t3.x (+) = t1.x
> AND t3.y (+) = t1.y
> AND t4.x = t1.x;
>
> For example...
>
> I realise that this is not standard, but it's easy to read, and easy to
> develop.
>
> The problem with OUTER is: OUTER on which relationship? Does this matter?
> I haven't thought about it hugely, but it may not make sense when you try to
> do this:
>
> SELECT *
> FROM t1, OUTER t2, t3
> WHERE t1.x = t2.x
> AND t2.y = t3.y
>
> Which is the OUTER join? Outer joining to t1 and inner joining to t3 gives
> (I think) a different result to inner joining to t1 and outer joining to t3.
> Then you have to start creating language rules to help determine which join
> becomes the outer join, and it becomes a bit of a mess. With Oracle's
> notation, it's pretty clear (I think anyway).

This must be why the ANSI standard requires you to specify the join when
doing outer. Thomas says we are going only with ANSI syntax, and I can
see now why OUTER is just looking for problems.

--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Patrick Welche,SCC,ext.35710, 2000-01-06 22:56:22 pg_dump problem
Previous Message The Hermit Hacker 2000-01-06 21:30:14 Re: [GENERAL] New Search Engine ... UdmSearch