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

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: pg, mysql comparison with "group by" clause
Date: 2005-10-13 14:11:43
Message-ID: 20051013141143.GA16317@phlogiston.dyndns.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)crankycanuck(dot)ca
This work was visionary and imaginative, and goes to show that visionary
and imaginative work need not end up well.
--Dennis Ritchie

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew Sullivan 2005-10-13 14:22:53 Re: Update timestamp on update
Previous Message Muralidharan Ramakrishnan 2005-10-13 13:22:17 Re: UPDATE Trigger on multiple tables