pgsql: During repeated rescan of GiST index it's possible that scan key - Mailing list pgsql-committers

From teodor@postgresql.org (Teodor Sigaev)
Subject pgsql: During repeated rescan of GiST index it's possible that scan key
Date
Msg-id 20081017170222.006087545A4@cvs.postgresql.org
Whole thread Raw
List 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.

Modified Files:
--------------
    pgsql/src/backend/access/gist:
        gistget.c (r1.75 -> r1.76)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/gist/gistget.c?r1=1.75&r2=1.76)
        gistscan.c (r1.71 -> r1.72)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/gist/gistscan.c?r1=1.71&r2=1.72)
    pgsql/src/include/access:
        gist_private.h (r1.32 -> r1.33)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/access/gist_private.h?r1=1.32&r2=1.33)

pgsql-committers by date:

Previous
From: neilc@postgresql.org (Neil Conway)
Date:
Subject: pgsql: Fix a small memory leak in ExecReScanAgg() in the hashed
Next
From: teodor@postgresql.org (Teodor Sigaev)
Date:
Subject: pgsql: During repeated rescan of GiST index it's possible that scan key