pgsql: Fix tuple counting in SP-GiST index build.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix tuple counting in SP-GiST index build.
Date: 2018-03-22 17:24:14
Message-ID: E1ez3wk-00068H-64@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/46f80803a1273836b818a60127ae01a891c42c85

Modified Files
--------------
src/backend/access/spgist/spginsert.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2018-03-22 17:26:37 pgsql: doc: Update parallel join documentation for Parallel Shared Hash
Previous Message Robert Haas 2018-03-22 17:17:42 pgsql: Call pgstat_report_activity() in parallel CREATE INDEX workers.