Thread: pgsql: Introduce traversalValue for SP-GiST scan

pgsql: Introduce traversalValue for SP-GiST scan

From
Teodor Sigaev
Date:
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ccd6eb49a4ae924290ab7eba5540218f5beb48b8

Modified Files
--------------
doc/src/sgml/spgist.sgml            | 15 +++++++++++++++
src/backend/access/spgist/spgscan.c | 18 ++++++++++++++++++
src/include/access/spgist.h         |  4 ++++
3 files changed, 37 insertions(+)