dbTalk Databases Forums  

[BUGS] BUG #2203: Group by, suggested "feature"

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2203: Group by, suggested "feature" in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Hostetter
 
Posts: n/a

Default [BUGS] BUG #2203: Group by, suggested "feature" - 01-23-2006 , 10:59 AM







The following bug has been logged online:

Bug reference: 2203
Logged by: Robert Hostetter
Email address: robert (AT) newcovsoft (DOT) com
PostgreSQL version: 8.1
Operating system: CentOS 4.1
Description: Group by, suggested "feature"
Details:

I'm sure this will be considered a missing feature and not a bug, I know I
would. We are converting from MySQL to PostgreSQL, which is a huge project.
But one minor irritation we've noticed is the group by handling in
PostgreSQL. If you group by a primary key for a table, you still have to
include all the other columns you SELECT from that row, even though its
guaranteed uniuqe because its a primary key. I understand requiring the
other columns when you aren't guaranteed uniqueness, but in cases of a group
by on a unique column you shouldn't need to include the rows, its
repetitive, and makes porting harder for no reason. Also on a similar note,
you can't group by any column you don't select.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Reply With Quote
  #2  
Old   
Peter Eisentraut
 
Posts: n/a

Default Re: [BUGS] BUG #2203: Group by, suggested "feature" - 01-23-2006 , 01:20 PM






Robert Hostetter wrote:
Quote:
If you group by a primary key for a table,
you still have to include all the other columns you SELECT from that
row, even though its guaranteed uniuqe because its a primary key.
Yes, this feature request is known as supporting functional
dependencies. We're aware of it.

Quote:
pAlso on a similar note, you can't group by any
column you don't select.
Sure you can.

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

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo (AT) postgresql (DOT) org so that your
message can get through to the mailing list cleanly


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.