Re: [BUGS] BUG #14476: crosstabview reports mistaken location - Mailing list pgsql-bugs

From Tom Lane
Subject Re: [BUGS] BUG #14476: crosstabview reports mistaken location
Date
Msg-id 17567.1482700057@sss.pgh.pa.us
Whole thread Raw
In response to [BUGS] BUG #14476: crosstabview reports mistaken location  (t.katsumata1122@gmail.com)
List pgsql-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

pgsql-bugs by date:

Previous
From: John R Pierce
Date:
Subject: Re: [BUGS] BUG #14477: Can't start service because of upgrade-likeinstallation
Next
From: nte@mustinformatique.fr
Date:
Subject: [BUGS] BUG #14478: Right Trim trims too much?