BUG #18835: spgist index fails to accept point with NaN

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: exclusion(at)gmail(dot)com
Subject: BUG #18835: spgist index fails to accept point with NaN
Date: 2025-03-07 18:00:01
Message-ID: 18835-deaf2add28625ed3@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18835
Logged by: Alexander Lakhin
Email address: exclusion(at)gmail(dot)com
PostgreSQL version: 17.4
Operating system: Ubuntu 24.04
Description:

The following script:
CREATE TABLE t(p point);
INSERT INTO t SELECT point(g, g) FROM generate_series(1, 1000) g;
INSERT INTO t VALUES ('(0,NaN)'::point);

CREATE INDEX spgist_idx ON t USING spgist(p);
triggers:
ERROR: XX000: getQuadrant: impossible case
LOCATION: getQuadrant, spgquadtreeproc.c:77

Reproduced starting from 8daeb5ddd.

This anomaly is discovered with SQLsmith.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Kirill Zdornyy 2025-03-07 20:07:45 Error from array_agg when table has many rows
Previous Message PG Bug reporting form 2025-03-07 16:09:38 BUG #18834: Query planer is choosing the sub-optimal plan when limit is present