]> granicus.if.org Git - postgresql/commit
Fix tuple counting in SP-GiST index build.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Mar 2018 17:23:48 +0000 (13:23 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Mar 2018 17:23:48 +0000 (13:23 -0400)
commitdb35bf507ffd98dca5ef5e5b73aa282d733ed47c
tree3950c49337fbbaf2384d6ed057d89da22324d3ff
parentdf90401556ce77f861d9a2205c90256968939152
Fix tuple counting in SP-GiST index build.

Count the number of tuples in the index honestly, instead of assuming
that it's the same as the number of tuples in the heap.  (It might be
different if the index is partial.)

Back-patch to all supported versions.

Tomas Vondra

Discussion: https://postgr.es/m/3b3d8eac-c709-0d25-088e-b98339a1b28a@2ndquadrant.com
src/backend/access/spgist/spginsert.c