Re: Improving GROUP BY? - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Improving GROUP BY?
Date
Msg-id 200509301523.30479.peter_e@gmx.net
Whole thread Raw
In response to Improving GROUP BY?  (Oliver Siegmar <oliver@siegmar.net>)
Responses Re: Improving GROUP BY?
Re: Improving GROUP BY?
List pgsql-general
Am Freitag, 30. September 2005 09:03 schrieb Oliver Siegmar:
> - Would it be possible to add a feature to PostgreSQL to allow grouping by
> unique identifiers only?
> - Is this requirement (all fields in GROUP BY) based on the SQL standard?

What you describe is called "functional dependencies" in the SQL standard.
(The query processor would recognize that the non-primary key columns
"functionally depend" on the primary key and therefore do not have to be
grouped separately.)  This is definitely a valid feature but PostgreSQL does
not implement it yet.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

pgsql-general by date:

Previous
From: Oliver Siegmar
Date:
Subject: Improving GROUP BY?
Next
From: John Seberg
Date:
Subject: Re: Improving GROUP BY?