pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: exclusion@gmail.com
Subject: BUG #18835: spgist index fails to accept point with NaN
Date: Fri, 07 Mar 2025 18:00:01 +0000
Message-ID: <18835-deaf2add28625ed3@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18835
Logged by:          Alexander Lakhin
Email address:      exclusion@gmail.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.



view thread (2+ messages)  latest in thread

Message-ID: <18835-deaf2add28625ed3@postgresql.org>
Permalink:  ../18835-deaf2add28625ed3@postgresql.org/
Also on:    postgresql.org/message-id/18835-deaf2add28625ed3@postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, exclusion@gmail.com
  Subject: Re: BUG #18835: spgist index fails to accept point with NaN
  In-Reply-To: <18835-deaf2add28625ed3@postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox