pgsql: Fix tuple counting in SP-GiST index build.
Started by Tom Laneover 8 years ago1 messagescomitters
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: /messages/by-id/3b3d8eac-c709-0d25-088e-b98339a1b28a@2ndquadrant.com
Branch
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/eee190da7eebe1409d770ee48bf3258ad73f34fb
Modified Files
--------------
src/backend/access/spgist/spginsert.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)