Re: Add hint for function named "is"

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: Add hint for function named "is"
Дата
Msg-id CAM-w4HOzC1vehF4XN5wEA_BiYYa_jMxDcN401RH6UTYq30eDzw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Add hint for function named "is"  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Add hint for function named "is"  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Vik Fearing
Дата:
Сообщение: Re: new autovacuum criterion for visible pages
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Server crash due to SIGBUS(Bus Error) when trying to access the memory created using dsm_create().