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 errors in contrib/bloom index build.
Date: Thu, 22 Mar 2018 17:14:20 +0000
Message-ID: <E1ez3nA-0005th-Pw@gemulon.postgresql.org> (raw)

Fix errors in contrib/bloom 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.)

Fix counting of tuples in current index page, too.  This error would
have led to failing to write out the final page of the index if it
contained exactly one tuple, so that the last tuple of the relation
would not get indexed.

Back-patch to 9.6 where contrib/bloom was added.

Tomas Vondra and Tom Lane

Discussion: https://postgr.es/m/3b3d8eac-c709-0d25-088e-b98339a1b28a@2ndquadrant.com

Branch
------
master

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

Modified Files
--------------
contrib/bloom/blinsert.c | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)



view thread (3+ messages)  latest in thread

Message-ID: <E1ez3nA-0005th-Pw@gemulon.postgresql.org>
Permalink:  ../E1ez3nA-0005th-Pw@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ez3nA-0005th-Pw@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 errors in contrib/bloom index build.
  In-Reply-To: <E1ez3nA-0005th-Pw@gemulon.postgresql.org>
  References: <E1ez3nA-0005th-Pw@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