Re: [PATCH] Allow star syntax in GROUP BY, as a shorthand for all table columns

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marti Raudsepp <marti(at)juffo(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Allow star syntax in GROUP BY, as a shorthand for all table columns
Date: 2011-06-08 17:22:15
Message-ID: 14953.1307553735@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Marti Raudsepp <marti(at)juffo(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua Berkus 2011-06-08 17:43:29 Re: reducing the overhead of frequent table locks - now, with WIP patch
Previous Message Tom Lane 2011-06-08 17:15:07 Re: Autoanalyze and OldestXmin