Re: Patch for removal of RULE bracket use

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Patch for removal of RULE bracket use
Date: 2002-03-08 05:09:46
Message-ID: 5735.1015564186@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2002-03-08 05:15:02 Re: Index USING in pg_dump
Previous Message Bruce Momjian 2002-03-08 04:51:52 Index USING in pg_dump