Re: BUG #17068: Incorrect ordering of a particular row. - Mailing list pgsql-bugs

From David Rowley
Subject Re: BUG #17068: Incorrect ordering of a particular row.
Date
Msg-id CAApHDvps-nsv4nwr-64OFp9APNxbB++=LvhP+gN+JWJ3wXJYiQ@mail.gmail.com
Whole thread Raw
In response to Re: BUG #17068: Incorrect ordering of a particular row.  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-bugs
On Wed, 23 Jun 2021 at 01:06, David Rowley <dgrowleyml@gmail.com> wrote:
> It seems a bit fishy that the only 4s that appear here are being
> compared to 4.  How does qsort figure out that 5 > 4 or 4 < 5?

Even if I change the < 7 qsort optimization in sort_template.h
(working in master here) to be < 7000 so we bubble sort everything
here, I still don't see 4 being compared to any other value. Something
else must be going on.

David



pgsql-bugs by date:

Previous
From: Thomas Munro
Date:
Subject: Re: BUG #17068: Incorrect ordering of a particular row.
Next
From: Alvaro Herrera
Date:
Subject: Re: BUG #17066: Cache lookup failed when null (iso-8859-1) is passed as anycompatiblemultirange