Re: pg, mysql comparison with "group by" clause

Поиск
Список
Период
Сортировка
От Andrew Sullivan
Тема Re: pg, mysql comparison with "group by" clause
Дата
Msg-id 20051013141143.GA16317@phlogiston.dyndns.org
обсуждение исходный текст
Ответ на Re: pg, mysql comparison with "group by" clause  (Greg Stark <gsstark@mit.edu>)
Список pgsql-sql
On Thu, Oct 13, 2005 at 12:24:55AM -0400, Greg Stark wrote:

> Well the "constants and the like" are precisely the point. There
> are plenty of cases where adding the column to the GROUP BY is
> unnecessary and since Postgres makes no attempt to prune them out,
> inefficient.

But inefficient pruning is an optimiser problem, not something that
should lead one to invent a whole syntax change that (a) violates the
standard and (b) is at least somewhat opaque in meaning.  The right
thing to do is surely to make the optimiser smarter, no?  (Think,
"What does DB2 have that we don't?")

A

-- 
Andrew Sullivan  | ajs@crankycanuck.ca
This work was visionary and imaginative, and goes to show that visionary
and imaginative work need not end up well.     --Dennis Ritchie


В списке pgsql-sql по дате отправления:

Предыдущее
От: Muralidharan Ramakrishnan
Дата:
Сообщение: Re: UPDATE Trigger on multiple tables
Следующее
От: Andrew Sullivan
Дата:
Сообщение: Re: Update timestamp on update