Re: SQL feature requests
От | Zeugswetter Andreas ADI SD |
---|---|
Тема | Re: SQL feature requests |
Дата | |
Msg-id | E1539E0ED7043848906A8FF995BDA579024F46AD@m0143.s-mxs.net обсуждение исходный текст |
Ответ на | Re: SQL feature requests ("Florian G. Pflug" <fgp@phlo.org>) |
Ответы |
Re: SQL feature requests
|
Список | pgsql-hackers |
> > how much harder can it be to accept: > > > > group by 'foo' Presumably you meant group by "foo". Imho pg should accept group by "foo". It could be part of a constant removal, that also takes burden off the sort. e.g. in "select x, count(*) from bar where x=5 group by x", x could be removed since it is constant. > This is not about hardness of the implementation, but rather about > non-confusing behaviour I think. > > AFAIK, "group by 1" means "group by the first selected column", not > "group all rows together". But "group by 'foo'" would carry the second > meaning - "group all rows together". Yes. I don't see the issue. 1 is imho sufficiently different even from "1". Pg is not alone in allowing column number in group by. Andreas
В списке pgsql-hackers по дате отправления: