Re: Cheers for DISTINCT ON

From: Andrew Sullivan <ajs(at)crankycanuck(dot)ca>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: Cheers for DISTINCT ON
Date: 2008-01-07 16:18:12
Message-ID: 20080107161812.GS18581@crankycanuck.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Mon, Jan 07, 2008 at 05:02:27PM +0100, Peter Kovacs wrote:
> I just wanted to give my cheers for DISTINCT ON. It is a great
> feature, I've just found a really good use for it. I am just wondering
> why it didn't make it into the standards.

Likely because neither Oracle Corp nor IBM nor (at the time, I guess) Sybase
had an implementation they were willing to spend enough time promoting.

> wondering ever since why the worse so often gets the upper-hand over
> the better. (I am obviously having a hard time "growing-up" :-) )

There is a long history in the computing literature on this, but the best
explanation is probably still Richard Gabriel's 'The Rise of "Worse is
Better"': <http://www.jwz.org/doc/worse-is-better.html>. Note that Gabriel
himself is of two minds about that paper:
<http://www.dreamsongs.com/WorseIsBetter.html>. I still think it's worth
reading. Just about everything I've ever written or said turned out to be
wrong in some sense, but it was still usually the result of the best
argument I could make at the time.

A

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Bruce Momjian 2008-01-07 16:22:51 Re: Cheers for DISTINCT ON
Previous Message Peter Kovacs 2008-01-07 16:02:27 Cheers for DISTINCT ON