Re: BUG #3958: Self-Join Group-By Clause Produces Incorrect Results - Mailing list pgsql-bugs

From Heikki Linnakangas
Subject Re: BUG #3958: Self-Join Group-By Clause Produces Incorrect Results
Date
Msg-id 47B2CFF9.6040506@enterprisedb.com
Whole thread Raw
In response to BUG #3958: Self-Join Group-By Clause Produces Incorrect Results  ("Marcus Torres" <marcsf23@yahoo.com>)
Responses Re: BUG #3958: Self-Join Group-By Clause Produces Incorrect Results  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
Marcus Torres wrote:
> The following bug has been logged online:
>
> Bug reference:      3958
> Logged by:          Marcus Torres
> Email address:      marcsf23@yahoo.com
> PostgreSQL version: 8.19
> Operating system:   Linux - Ubuntu
> Description:        Self-Join Group-By Clause Produces Incorrect Results
> Details:
>
> This is a repost of my original bug with self-contained sql to reproduce the
> problem:
>
> I wrote a simple self-join query to sum the transaction count of different
> types of records in a audit table and the result set for the different sum
> totals was the same which is incorrect.

Looks perfectly correct to me.

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

pgsql-bugs by date:

Previous
From: "Marcus Torres"
Date:
Subject: BUG #3958: Self-Join Group-By Clause Produces Incorrect Results
Next
From: "Renaud Diez"
Date:
Subject: BUG #3959: Huge calculation error