Re: BUG #14648: counts for queries using array unnesting is incorrect

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: sebastian(dot)calbaza(at)hgdata(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14648: counts for queries using array unnesting is incorrect
Date: 2017-05-12 14:20:47
Message-ID: 18166.1494598847@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

sebastian(dot)calbaza(at)hgdata(dot)com writes:
> Below is a query that we are using to calculate some counts:
> * first version of the query lacks ```unnest(ids) as id,```, but second
> one has it
> * ```companies``` count value is incorrect for the second one, first
> query has the correct value

My first suggestion would be to see if updating to 9.6.3 fixes it.
If not, please try to create a self-contained test case. These
queries are unreadable, and without the underlying data, nobody
else can even tell whether the answers are wrong or not.

https://wiki.postgresql.org/wiki/Guide_to_reporting_problems

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Eisentraut 2017-05-12 14:28:10 Re: [BUGS] Concurrent ALTER SEQUENCE RESTART Regression
Previous Message Peter Eisentraut 2017-05-12 14:20:02 Re: [HACKERS] Concurrent ALTER SEQUENCE RESTART Regression