Re: [HACKERS] subquery syntax broken - Mailing list pgsql-hackers

From Vadim B. Mikheev
Subject Re: [HACKERS] subquery syntax broken
Date
Msg-id 34D6D6B2.B44F2C33@sable.krasnoyarsk.su
Whole thread Raw
In response to Re: [HACKERS] subquery syntax broken  (Bruce Momjian <maillist@candle.pha.pa.us>)
List pgsql-hackers
Thomas G. Lockhart wrote:
>
> > I believe it has to do with the fact that '=' has right precedence.
> > Thomas, can you comment.  Maybe we need to %right 'Op' at that point so
> > it doesn't shift too early?
>
> No, the single-character operators each need their own code in the parser.
> Check near line 2980 in the parser for examples from the "a_expr" syntax. You
> just need to replicate the subselect "Op" definition blocks and substitute
> each of '=', '<', and '>' in the copies. The existing "Op" code handles the

Don't forget about ALL/ANY modifiers, too...

> multi-character operators such as '<=' and '>='...

Vadim

pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Re: [HACKERS] subquery syntax broken
Next
From: James Hughes
Date:
Subject: Re: [HACKERS] VACUUM ANALYZE Problem