On Wed, Sep 30, 2026 at 12:30 PM shihao zhong <zhong950419@gmail.com> wrote:
> One box with a NaN coordinate gets into a BRIN or GiST union key, and
> v6 from Sep 28 has four patches. 0001 fixes BRIN with a box_mergeable
> support function, master only. 0002 fixes GiST union keys and the ~=
> case. 0003 is Kirill's NaN point check for polygon and circle
> searches, it also corrects a count in create_index.out where the index
> scan has returned 4 and the seq scan 5. 0004 fixes GiST KNN. 0002 to
> 0004 go back to 14 with small rebases. For the back branches the BRIN
> fix is v6-REL_18-0001, the scan checks whether the union contains
> itself, no catalog change. That check would also do for master if you
> would rather skip the catversion bump. Old indexes return correct
> results without a REINDEX with either approach.
The following might be relevant as a different perspective:
https://www.postgresql.org/message-id/1122078.1741378100@sss.pgh.pa.us
--
John Naylor
Amazon Web Services