From: Tom Lane <tgl@sss.pgh.pa.us>
To: sebastian.calbaza@hgdata.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14648: counts for queries using array unnesting is incorrect
Date: Fri, 12 May 2017 10:20:47 -0400
Message-ID: <18166.1494598847@sss.pgh.pa.us> (raw)
In-Reply-To: <20170512130033.1796.93117@wrigleys.postgresql.org>
References: <20170512130033.1796.93117@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
sebastian.calbaza@hgdata.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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, sebastian.calbaza@hgdata.com
Subject: Re: BUG #14648: counts for queries using array unnesting is incorrect
In-Reply-To: <18166.1494598847@sss.pgh.pa.us>
References: <20170512130033.1796.93117@wrigleys.postgresql.org> <18166.1494598847@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox