postgresql/src/backend/access
Robert Haas c8ba697a4b Fix logic bug in gistchoose and gistRelocateBuildBuffersOnSplit.
Every time the best-tuple-found-so-far changes, we need to reset all
the penalty values in which_grow[] to the penalties for the new best
tuple.  The old code failed to do this, resulting in inferior index
quality.

The original patch from Alexander Korotkov was just two lines; I took
the liberty of fleshing that out by adding a bunch of comments that I
hope will make this logic easier for others to understand than it was
for me.
2012-08-30 13:09:07 -04:00
..
common Split resowner.h 2012-08-28 18:02:07 -04:00
gin Split heapam_xlog.h from heapam.h 2012-08-28 19:02:00 -04:00
gist Fix logic bug in gistchoose and gistRelocateBuildBuffersOnSplit. 2012-08-30 13:09:07 -04:00
hash Reduce use of heavyweight locking inside hash AM. 2012-06-26 06:56:10 -04:00
heap Split heapam_xlog.h from heapam.h 2012-08-28 19:02:00 -04:00
index Split heapam_xlog.h from heapam.h 2012-08-28 19:02:00 -04:00
nbtree Split heapam_xlog.h from heapam.h 2012-08-28 19:02:00 -04:00
spgist Optimize SP-GiST insertions. 2012-08-29 09:21:20 +03:00
transam Split heapam_xlog.h from heapam.h 2012-08-28 19:02:00 -04:00
Makefile Add SP-GiST (space-partitioned GiST) index access method. 2011-12-17 16:42:30 -05:00