Re: two-argument aggregates and SQL 2003
От | Tom Lane |
---|---|
Тема | Re: two-argument aggregates and SQL 2003 |
Дата | |
Msg-id | 28290.1145128943@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: two-argument aggregates and SQL 2003 ("Jim C. Nasby" <jnasby@pervasive.com>) |
Список | pgsql-hackers |
"Jim C. Nasby" <jnasby@pervasive.com> writes: > On Sat, Apr 15, 2006 at 12:51:24AM -0400, Tom Lane wrote: >> I had an epiphany that might serve as illustration of the above. We >> have traditionally thought of COUNT(*) as an "aggregate over any base >> type". But wouldn't it be cleaner to think of it as an aggregate over >> zero inputs? > Speaking strictly from a users PoV, I'm not sure this is a great idea, > since it encourages non-standard code (AFAIK no one else accepts > 'count()'), and getting rid of support for count(*) seems like a > non-starter, so I'm not sure there's any benefit. Well, if you want, we can still insist that actual invocations of a zero-argument aggregate be spelled with (*). But from a conceptual and documentation standpoint we should think of them as zero-argument, not sort-of-one-argument. regards, tom lane
В списке pgsql-hackers по дате отправления: