Re: ONLY with parentheses - Mailing list pgsql-hackers

From Cédric Villemain
Subject Re: ONLY with parentheses
Date
Msg-id 496603C2.1080703@dalibo.com
Whole thread Raw
In response to ONLY with parentheses  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Eisentraut a écrit :
> While working on TRUNCATE with ONLY, I said to myself, hmm, when writing
> 
> TRUNCATE ONLY a, b
> 
> it might be a bit confusing whether the ONLY refers to a or both a and
> b.  Then I noticed that the SQL standard requires parentheses, like
> 
> TRUNCATE ONLY (a), b
> 
> which is clearer.  While we support that in gram.y, I don't see it
> anywhere in the documentation.
> 
> Should we document this and emphasize it as having more clarity?
> 

+1

- --
Cédric Villemain
Administrateur de Base de Données
Cel: +33 (0)6 74 15 56 53
http://dalibo.com - http://dalibo.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAklmA7wACgkQo/dppWjpEvxpcwCgyAA9OxtUN4X51EwuRmtMtGe+
Tm4AnAnjDzyc3roMZGFOhQWodOzueX1n
=TJ9x
-----END PGP SIGNATURE-----


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Sample of user-define window function and other things
Next
From: Bruce Momjian
Date:
Subject: Re: text search patch status update?