Re: Trailing comma support in SELECT statements - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Trailing comma support in SELECT statements
Date
Msg-id 11052.1413584327@sss.pgh.pa.us
Whole thread Raw
In response to Re: Trailing comma support in SELECT statements  (Jim Nasby <Jim.Nasby@BlueTreble.com>)
Responses Re: Trailing comma support in SELECT statements
List pgsql-hackers
Jim Nasby <Jim.Nasby@BlueTreble.com> writes:
> As I originally posted, if we're going to do this I think we should do it *EVERYWHERE* commas are used as delimiters,
saveCOPY input and output. Or we should at least get close to doing it everywhere. I think the only way things could
getmore annoying is if we accepted extra commas in SELECT but not in CREATE TABLE (as one example).
 

> To me completeness is more important than whether we do it or not; that said, I like the idea (as well as supporting
leadingextra commas).
 

Yeah, exactly.  Personally I'm *not* for this, but if we do it we should
do it consistently: every comma-separated list in the SQL syntax should
work the same.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: get_actual_variable_range vs idx_scan/idx_tup_fetch
Next
From: Jim Nasby
Date:
Subject: Re: Superuser connect during smart shutdown