ONLY with parentheses - Mailing list pgsql-hackers

From Peter Eisentraut
Subject ONLY with parentheses
Date
Msg-id 496600E1.9000706@gmx.net
Whole thread Raw
Responses Re: ONLY with parentheses
Re: ONLY with parentheses
List pgsql-hackers
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?


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: about truncate
Next
From: "Hitoshi Harada"
Date:
Subject: Re: Sample of user-define window function and other things