pgsql: During repeated rescan of GiST index it's possible that scan key

From: teodor(at)postgresql(dot)org (Teodor Sigaev)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: During repeated rescan of GiST index it's possible that scan key
Date: 2008-10-17 17:02:42
Message-ID: 20081017170242.5FB737545A4@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
During repeated rescan of GiST index it's possible that scan key
is NULL but SK_SEARCHNULL is not set. Add checking IS NULL of keys
to set during key initialization. If key is NULL and SK_SEARCHNULL is not
set then nothnig can be satisfied.
With assert-enabled compilation that causes coredump.

Bug was introduced in 8.3 by support of IS NULL index scan.

Tags:
----
REL8_3_STABLE

Modified Files:
--------------
pgsql/src/backend/access/gist:
gistget.c (r1.69.2.1 -> r1.69.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/gist/gistget.c?r1=1.69.2.1&r2=1.69.2.2)
gistscan.c (r1.68.2.1 -> r1.68.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/gist/gistscan.c?r1=1.68.2.1&r2=1.68.2.2)
pgsql/src/include/access:
gist_private.h (r1.28.2.1 -> r1.28.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/access/gist_private.h?r1=1.28.2.1&r2=1.28.2.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Teodor Sigaev 2008-10-17 17:27:46 pgsql: Fix small bug in headline generation.
Previous Message Teodor Sigaev 2008-10-17 17:02:21 pgsql: During repeated rescan of GiST index it's possible that scan key