]> granicus.if.org Git - postgresql/commit
Optimize SP-GiST insertions.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 29 Aug 2012 06:14:08 +0000 (09:14 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Wed, 29 Aug 2012 06:21:20 +0000 (09:21 +0300)
commitc82dedb7a8a953785f24a3b10de376760d60c24c
treefd8ed66d5fc40431790f971e442c5f16cd9ddaa3
parent9df55c8c3f0eba77de57006999d5700292fa9d33
Optimize SP-GiST insertions.

This includes two micro-optimizations to the tight inner loop in descending
the SP-GiST tree: 1. avoid an extra function call to index_getprocinfo when
calling user-defined choose function, and 2. avoid a useless palloc+pfree
when node labels are not used.
src/backend/access/spgist/spgdoinsert.c
src/backend/access/spgist/spgutils.c