Re: SP-GiST quad_point_ops KNN scan can omit a closer point

From: John Naylor <johncnaylorls(at)gmail(dot)com>
To: wangyang25(at)otcaix(dot)iscas(dot)ac(dot)cn
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: SP-GiST quad_point_ops KNN scan can omit a closer point
Date: 2026-11-26 05:13:32
Message-ID: CANWCAZZAu5v4eTwJ9QbGj0TE2JzpV+7FgwWYHCiOifG6=tTyJQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Nov 26, 2026 at 12:57 AM <wangyang25(at)otcaix(dot)iscas(dot)ac(dot)cn> wrote:
> A KNN query using the default SP-GiST point operator class can omit a closer point and return a farther point in the top-k result. The result differs from sorting the same rows by the same distance expression.

This is the only readable part of the report -- the rest is
gibberish. From the above I can tell that I found this same bug among
others last month.

I have time to come back to this, so I'm now separating out rounding
bugs from other bugs, since some fixes for the latter need to take
rounding also into account. I'll share the pure-rounding fixes in a
separate email, then come back to this.

--
John Naylor
Amazon Web Services

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Alexander Lakhin 2026-11-26 07:00:01 Re: BUG #19928: pg_upgrade fails on v18 schema with NOT NULL ... NO INHERIT and inheritance
Previous Message Rajesh Kumar Thandapani 2026-11-26 04:20:55 Re: Lost walsender wakeup stalls synchronous commits until the standby's next reply (16+)