During repeated rescan of GiST index it's possible that scan key
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 17 Oct 2008 17:02:42 +0000 (17:02 +0000)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 17 Oct 2008 17:02:42 +0000 (17:02 +0000)
commitaa9210b67d0088564d49d65309091c8efad0f841
tree60fa82debf12fd0d46b20e62282dd4fecd525756
parent25e4d923e1d19981aaca3106885b56ddb4e330f8
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.
src/backend/access/gist/gistget.c
src/backend/access/gist/gistscan.c
src/include/access/gist_private.h