Re: Add hint for function named "is" - Mailing list pgsql-hackers

From Greg Stark
Subject Re: Add hint for function named "is"
Date
Msg-id CAM-w4HOzC1vehF4XN5wEA_BiYYa_jMxDcN401RH6UTYq30eDzw@mail.gmail.com
Whole thread Raw
In response to Re: Add hint for function named "is"  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Add hint for function named "is"  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Thu, Aug 11, 2016 at 10:54 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> I think what is happening
> in the trouble case is that since IS has lower precedence than Op, the
> grammar decides it ought to resolve || as a postfix operator, and then
> it effectively has
>         ('x' ||) IS ...
> which leaves noplace to go except IS NULL and other IS-something syntaxes.

I wonder whether it's really worth keeping postfix operators. They
seem to keep causing these kinds of headaches and I wonder how much
the grammar tables would be simplified by removing them.



-- 
greg



pgsql-hackers by date:

Previous
From: Vik Fearing
Date:
Subject: Re: new autovacuum criterion for visible pages
Next
From: Tom Lane
Date:
Subject: Re: Server crash due to SIGBUS(Bus Error) when trying to access the memory created using dsm_create().