Skip site navigation (1) Skip section navigation (2)

Re: Re: UNION JOIN vs UNION SELECT

From: Andrew Selle <aselle(at)upl(dot)cs(dot)wisc(dot)edu>
To: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Re: UNION JOIN vs UNION SELECT
Date: 2000-08-29 03:09:45
Message-ID: 20000828220945.A8170@upl.cs.wisc.edu (view raw or flat)
Thread:
Lists: pgsql-hackers
> > 
> > That's exactly the solution I'm proposing.  However, it's pretty painful
> > to make the lexer do it directly (consider intervening comments, for
> > example)
> 
> Comments are a pain in the parser. What if something prior to the lexer
> filtered out comments before either the lexer or parser could see them?
> Would it be as easy as s/--.*// before the lexer?

It probably wouldn't be that simple, but I do think that the solution
is sound.  Such a design is recommended by the Dragon book and has
the benefit of simplifying both the lexer and the parser.

-Andy

In response to

pgsql-hackers by date

Next:From: Thomas LockhartDate: 2000-08-29 04:10:51
Subject: Re: SQL COPY syntax extension (was: Performance on inserts)
Previous:From: t-ishiiDate: 2000-08-29 01:12:38
Subject: Re: [HACKERS] when does CREATE VIEW not create a view?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group