From: Tom Lane <tgl@sss.pgh.pa.us>
To: t.katsumata1122@gmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14476: crosstabview reports mistaken location
Date: Sun, 25 Dec 2016 16:07:37 -0500
Message-ID: <17567.1482700057@sss.pgh.pa.us> (raw)
In-Reply-To: <20161225021519.10139.45460@wrigleys.postgresql.org>
References: <20161225021519.10139.45460@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
t.katsumata1122@gmail.com writes:
> I'm playing with crosstabview, PostgreSQL9.6 new feature.
> And I noticed the error message is not correct when it has duplicate data.
Yup, you're right.
> It seems this problem is reproduced when number of row is higher than 10.
It looks to me like the triggering condition is that the data values
aren't in ASCII (strcmp()) order. As long as they are, the "pivot value"
array order matches the rank order and so the error message accidentally
selects the appropriate array entries.
Fix pushed, thanks for the report!
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, t.katsumata1122@gmail.com
Subject: Re: BUG #14476: crosstabview reports mistaken location
In-Reply-To: <17567.1482700057@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