pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix tuple counting in SP-GiST index build.
Date: Thu, 22 Mar 2018 17:24:14 +0000
Message-ID: <E1ez3wk-00068C-5n@gemulon.postgresql.org> (raw)

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_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/db35bf507ffd98dca5ef5e5b73aa282d733ed47c

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



view thread (6+ messages)  latest in thread

Message-ID: <E1ez3wk-00068C-5n@gemulon.postgresql.org>
Permalink:  ../E1ez3wk-00068C-5n@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ez3wk-00068C-5n@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Fix tuple counting in SP-GiST index build.
  In-Reply-To: <E1ez3wk-00068C-5n@gemulon.postgresql.org>
  References: <E1ez3wk-00068C-5n@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox