Re: 7.0 weirdness

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff MacDonald <jeff@pgsql.com>
Cc: omid omoomi <oomoomi@hotmail.com>, pgsql-sql@postgresql.org, pgsql-hackers@postgresql.org
Date: 2000-05-30T14:44:59Z
Lists: pgsql-hackers
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