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