Re: Improving GROUP BY?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Improving GROUP BY?
Дата
Msg-id 200509301523.30479.peter_e@gmx.net
обсуждение исходный текст
Ответ на Improving GROUP BY?  (Oliver Siegmar <oliver@siegmar.net>)
Ответы Re: Improving GROUP BY?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Improving GROUP BY?  (Oliver Siegmar <oliver@siegmar.net>)
Список 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 по дате отправления:

Предыдущее
От: Oliver Siegmar
Дата:
Сообщение: Improving GROUP BY?
Следующее
От: John Seberg
Дата:
Сообщение: Re: Improving GROUP BY?