Re: bug in JOIN or COUNT or ... ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bug in JOIN or COUNT or ... ?
Дата
Msg-id 21950.989718243@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: bug in JOIN or COUNT or ... ?  (The Hermit Hacker <scrappy@hub.org>)
Список 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 по дате отправления:

Предыдущее
От: mlw
Дата:
Сообщение: SET variables
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: [COMMITTERS] pgsql/ /README /configure /configure.in /regis ...