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 <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 по дате отправления
От: Bruce Momjian
Дата:
Сообщение: Index USING in pg_dump
От: Tom Lane
Дата:
Сообщение: Re: Index USING in pg_dump
FAQ