Re: bug in JOIN or COUNT or ... ? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bug in JOIN or COUNT or ... ?
Date
Msg-id 21950.989718243@sss.pgh.pa.us
Whole thread Raw
In response to Re: bug in JOIN or COUNT or ... ?  (The Hermit Hacker <scrappy@hub.org>)
List pgsql-hackers
The Hermit Hacker <scrappy@hub.org> writes:
>> So that inflates the number of rows coming out of the join by 5.

> Okay, then I'm lost ... why wouldn't that show up without the COUNT()?  I
> doubt doubt your analysis, I just want to understand why ...

You had DISTINCT on your query, which hid the duplicated rows from you.
But that happens *after* aggregate processing, so it doesn't hide the
dups from COUNT().
        regards, tom lane


pgsql-hackers by date:

Previous
From: mlw
Date:
Subject: SET variables
Next
From: Bruce Momjian
Date:
Subject: Re: Re: [COMMITTERS] pgsql/ /README /configure /configure.in /regis ...