Re: BUG #5255: COUNT(*) returns wrong result with LEFT JOIN

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Matteo Beccati" <php(at)beccati(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5255: COUNT(*) returns wrong result with LEFT JOIN
Date: 2009-12-25 17:13:00
Message-ID: 6159.1261761180@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I wrote:
> I guess we missed something about when it's safe to do this optimization.

I've applied the attached patch to fix this.

regards, tom lane

Attachment Content-Type Size
join-removal-fix.patch text/x-patch 2.0 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Matteo Beccati 2009-12-25 17:21:51 Re: BUG #5255: COUNT(*) returns wrong result with LEFT JOIN
Previous Message Tom Lane 2009-12-25 16:38:53 Re: BUG #5255: COUNT(*) returns wrong result with LEFT JOIN