RE: [HACKERS] Postgres' lexer - Mailing list pgsql-hackers

From Ansley, Michael
Subject RE: [HACKERS] Postgres' lexer
Date
Msg-id 1BF7C7482189D211B03F00805F8527F748C031@S-NATH-EXCH2
Whole thread Raw
List pgsql-hackers
>> 
>> No good: we already have some.  There are three standard geometric
>> operators named "?-" ... not to mention lord-knows-what user-defined<snip>
>> It would also be worth remembering that "-" is far from the 
>> only unary
>> operator name we have, and so a solution that creates 
>> special behavior
>> just for "-" is really no solution at all.  Making a special case for
>> "-" just increases the potential for confusion, not 
>> decreases it, IMHO.
>> 
This is even more of a reason to remove it from where it is currently.  The
code in the parser now is explicitly for a minus.  I think an idea might be
to check out some other SQL scanner implementations, and see how they do it.
I will also speak to Vern, and see if he can shed any light on the matter.

MikeA


pgsql-hackers by date:

Previous
From: Andreas Zeugswetter
Date:
Subject: Re: [HACKERS] SELECT BUG
Next
From: "Ansley, Michael"
Date:
Subject: RE: [HACKERS] Postgres' lexer