Re: [HACKERS] distinct. Is this the correct behaviour?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: sszabo(at)bigpanda(dot)com
Cc: Vince Vielhaber <vev(at)michvhf(dot)com>, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] distinct. Is this the correct behaviour?
Date: 1999-10-21 13:36:54
Message-ID: 16494.940513014@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

sszabo(at)bigpanda(dot)com writes:
> This seems to generally work in postgres for the simple cases I tried:
> select x from foo group by x order by min(y)

> Now I don't know if there are any hidden gotchas in that (or wierdness
> with the spec), but it also feels better to me than using distinct in this
> case as well, because it seems to explicitly describe how you want y
> ordered.

Yes, I like that better too.

I wonder if we could/should rewrite all uses of DISTINCT into GROUP
BY under-the-hood...

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Ansley, Michael 1999-10-21 13:44:40 RE: [HACKERS] distinct. Is this the correct behaviour?
Previous Message Tom Lane 1999-10-21 13:32:53 Re: [HACKERS] distinct. Is this the correct behaviour?