Re: BUG #19000: gist index returns inconsistent result with gist_inet_ops
Richard Guo <guofenglinux@gmail.com>
From: Richard Guo <guofenglinux@gmail.com>
To: exclusion@gmail.com, pgsql-bugs@lists.postgresql.org
Cc: Peter Eisentraut <peter@eisentraut.org>
Date: 2025-07-28T02:23:13Z
Lists: pgsql-bugs
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
ecpg: Fix memory leaks in ecpg_auto_prepare()
- 3151c264d460 19 (unreleased) cited
On Mon, Jul 28, 2025 at 5:16 AM PG Bug reporting form <noreply@postgresql.org> wrote: > CREATE EXTENSION btree_gist; > > CREATE TABLE t AS SELECT '192.168.1.0/25'::inet AS i; > > SELECT * FROM t WHERE i << '192.168.1.0/24'::cidr; > i > ---------------- > 192.168.1.0/25 > > CREATE INDEX ON t USING gist(i); > > SELECT * FROM t WHERE i << '192.168.1.0/24'::cidr; > i > --- > (0 rows) It seems that with gist_inet_ops the index's opfamily does not support the '<<' operator correctly. With inet_ops, the query works correctly. CC'ing Peter to have a look. Thanks Richard