Re: BUG #19937: Assertion failure (SIGABRT) in GiST KNN scan (computeDistance) on box with NaN coordinate

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: 798604270(at)qq(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19937: Assertion failure (SIGABRT) in GiST KNN scan (computeDistance) on box with NaN coordinate
Date: 2026-12-04 04:18:25
Message-ID: CAGRkXqSXnEz0rF+nY3g7noCZEQnDN-MiqiNNPdEc47N9gOkNXA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Chi,

> I found that a GiST KNN index scan (ORDER BY b <-> point(...)) on a box
> column containing a NaN coordinate crashes assertion-enabled
> (--enable-cassert) builds

Thanks for the report. This is the same problem as BUG #19705 [1], and
the patch for it in CommitFest entry 7370 fixes your case.

[1]
https://www.postgresql.org/message-id/19705-548fda77321e062d@postgresql.org

Thanks,
Shihao

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message shihao zhong 2026-12-04 04:18:52 Re: BUG #19938: BRIN index on box silently drops ordinary matching rows when a NaN box shares the same page range
Previous Message shihao zhong 2026-12-04 04:17:54 Re: postgres_fdw: semi-join pushdown generates invalid remote SQL ("missing FROM-clause entry") with a nested correlated subquery