Re: [HACKERS] DISTINCT and ORDER BY bug?

From: Don Baccus <dhogaza(at)pacifier(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] DISTINCT and ORDER BY bug?
Date: 2000-02-07 16:21:46
Message-ID: 3.0.1.32.20000207082146.0108a3b0@mail.pacifier.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At 11:03 AM 2/7/00 -0500, Tom Lane wrote:

>Could be. How about cases like
>
> select distinct x,y+1 from foo order by x+y+1;

SQL> select distinct x,y+1 from foo order by x+y+1
*
ERROR at line 1:
ORA-01791: not a SELECTed expression

>> At least, the rule is simple if you can compare expression trees.

>I think we have something pretty similar for GROUP BY, actually,
>so it may not be hard to make this work.

Actually, yes, you're probably right...

- Don Baccus, Portland OR <dhogaza(at)pacifier(dot)com>
Nature photos, on-line guides, Pacific Northwest
Rare Bird Alert Service and other goodies at
http://donb.photo.net.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2000-02-07 16:31:44 Re: [HACKERS] TODO item
Previous Message Vince Vielhaber 2000-02-07 16:15:22 Re: [HACKERS] New Globe