Re: 7.0 weirdness - Mailing list pgsql-sql

From Tom Lane
Subject Re: 7.0 weirdness
Date
Msg-id 1967.959697899@sss.pgh.pa.us
Whole thread Raw
In response to Re: 7.0 weirdness  (Jeff MacDonald <jeff@pgsql.com>)
List pgsql-sql
Jeff MacDonald <jeff@pgsql.com> writes:
> gid is unique.. it's a serial..

Mph.  If you assume that gid is unique then the query would give
well-defined results, but if you know it's unique then why don't
you just leave off the DISTINCT?

> funny thing is tho this worked on 6.5

No, 6.5 merely failed to notice that it was giving you undefined
results.
        regards, tom lane


pgsql-sql by date:

Previous
From: "Matthias Urlichs"
Date:
Subject: Re: [HACKERS] Re: 7.0 weirdness
Next
From: mikeo
Date:
Subject: Re: remove line type?