Re: SELECT, GROUP BY, and aggregates

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>, Bill Moran <wmoran(at)potentialtech(dot)com>
Cc: Ryan Delaney <ryan(dot)delaney(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: SELECT, GROUP BY, and aggregates
Date: 2015-02-13 20:28:08
Message-ID: 54DE5E58.8000403@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2/13/15 1:48 PM, Jeff Janes wrote:
> I waste an inordinate amount of time retyping select lists over into the
> group by list, or copying and pasting and then deleting the aggregate
> clauses. It is an entirely pointless exercise. I can't fault
> PostgreSQL for following the standard, but its too bad the standards
> aren't more sensible.

An extension like GROUP BY ALL might be useful, without breaking much.

Also note that you can group by primary key only.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mathieu Basille 2015-02-13 20:37:04 Re: Hardware requirements for a PostGIS server
Previous Message George Weaver 2015-02-13 19:38:55 Re: Unknown error while running <> postgresql_installer_dc46cfee2c\getlocales.exe