Re: Remove vestigial UNION JOIN support?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Remove vestigial UNION JOIN support?
Date: 2006-03-05 21:09:53
Message-ID: 200603052109.k25L9ri02047@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> SQL92 contains a construct "table1 UNION JOIN table2", which is defined
> essentially the same as "table1 FULL JOIN table2 ON false" --- you get
> all the rows of table1 null-extended into the table2 columns, and all
> the rows of table2 null-extended into the table1 columns, and no actual
> join rows.
>
> SQL99, however, deprecates this construct, and it's gone entirely in
> SQL2003. (They don't say *why* they got rid of it --- is it just
> because it's redundant, or was there some error in the definition?
> Date and Darwen obviously don't like it either, but don't say why.)
>
> We've got some vestigial support for this thing, but given the
> subsequent evolution of the standard it seems quite unlikely that
> we'll ever finish up the implementation. It'd make more sense to
> spend the work on allowing FULL JOIN ON FALSE, something that we
> don't accept today but I think wouldn't be much work to fix.
>
> So I'm proposing that we remove what's there. In particular we could
> get rid of the intermediate yylex() function in parser.c, which should
> save at least a few microseconds during every SQL command. I didn't
> have a problem with that function when it was put in, because I figured
> we'd find other cases where we needed extra lookahead, but so far we've
> not found any so I'm thinking we could save the overhead.
>
> Any objections?

Agreed.

--
Bruce Momjian http://candle.pha.pa.us
SRA OSS, Inc. http://www.sraoss.com

+ If your life is a hard drive, Christ can be your backup. +

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jim C. Nasby 2006-03-05 23:28:29 Re: ACCESS EXCLUSIVE LOCK
Previous Message Tom Lane 2006-03-05 20:30:30 Re: pg.conf re-reading in signal handler or at next return to main loop?