]> granicus.if.org Git - postgresql/commit
Introduce traversalValue for SP-GiST scan
authorTeodor Sigaev <teodor@sigaev.ru>
Wed, 30 Mar 2016 15:29:28 +0000 (18:29 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Wed, 30 Mar 2016 15:29:28 +0000 (18:29 +0300)
commitccd6eb49a4ae924290ab7eba5540218f5beb48b8
treea5c1a9d35b8dd70d7e8bb06a6370de599d64b15c
parent3063e7a84026ced2aadd2262f75eebbe6240f85b
Introduce traversalValue for SP-GiST scan

During scan sometimes it would be very helpful to know some information about
parent node or all  ancestor nodes. Right now reconstructedValue could be used
but it's not a right usage of it (range opclass uses that).

traversalValue is arbitrary piece of memory in separate MemoryContext while
reconstructedVale should have the same type as indexed column.

Subsequent patches for range opclass and quad4d tree will use it.

Author: Alexander Lebedev, Teodor Sigaev
doc/src/sgml/spgist.sgml
src/backend/access/spgist/spgscan.c
src/include/access/spgist.h