Re: [PATCH] Allow star syntax in GROUP BY, as a shorthand for all table columns
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marti Raudsepp <marti@juffo.org>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2011-06-08T17:22:15Z
Lists: pgsql-hackers
Marti Raudsepp <marti@juffo.org> writes: > This patch enables the syntax "GROUP BY tablename.*" in cases where > earlier you'd get the error "field must appear in the GROUP BY clause > or be used in an aggregate function" Is this really necessary now that we know about "GROUP BY primary key"? > The patch is so trivial that I'm wondering why it hasn't been > implemented before. Probably because it's a nonstandard kluge ... regards, tom lane