Re: Patch for removal of RULE bracket use
От
Tom Lane
Тема
Re: Patch for removal of RULE bracket use
Дата
Msg-id
5735.1015564186@sss.pgh.pa.us
Ответ на
Patch for removal of RULE bracket use (Bruce Momjian)
Список
Дерево обсуждения
Patch for removal of RULE bracket use Bruce Momjian <pgman@candle.pha.pa.us>
Re: Patch for removal of RULE bracket use Tom Lane <tgl@sss.pgh.pa.us>
Re: Patch for removal of RULE bracket use Gavin Sherry <swm@linuxworld.com.au>
Bruce Momjian writes:
> One question I have is whether this change is needed:
> %left '.'
> - %left '[' ']'
> %left '(' ')'
Only if you want to break array-subscript parsing ;-). Leave it in.
> I believe the logic for removal of brackets for multi-statement rules is
> that brackets are just weird in this usage. :-)
I think the real reason is that psql and other clients aren't smart
about brackets overriding semicolons, and we don't feel like making
them so.
regards, tom lane
В списке pgsql-hackers по дате отправления