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@postgresql.org
Subject: pgsql: Measure Bloom index signature-length reloption in bits, not word
Date: Fri, 03 Jun 2016 14:52:56 +0000
Message-ID: <E1b8qT2-0001pv-8z@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Measure Bloom index signature-length reloption in bits, not words.

Per discussion, this is a more understandable and future-proof way of
exposing the setting to users.  On-disk, we can still store it in words,
so as to not break on-disk compatibility with beta1.

Along the way, clean up the code associated with Bloom reloptions.
Provide explicit macros for default and maximum lengths rather than
having magic numbers buried in multiple places in the code.  Drop
the adjustBloomOptions() code altogether: it was useless in view of
the fact that reloptions.c already performed default-substitution and
range checking for the options.  Rename a couple of macros and types
for more clarity.

Discussion: <23767.1464926580@sss.pgh.pa.us>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ee4af347ba89b8492d1f86b6456865e1de1d030f

Modified Files
--------------
contrib/bloom/bloom.h   |  33 ++++++++-----
contrib/bloom/blscan.c  |   2 +-
contrib/bloom/blutils.c | 125 ++++++++++++++++++++----------------------------
doc/src/sgml/bloom.sgml |  19 ++++----
4 files changed, 86 insertions(+), 93 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1b8qT2-0001pv-8z@gemulon.postgresql.org>
Permalink:  ../E1b8qT2-0001pv-8z@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1b8qT2-0001pv-8z@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: Measure Bloom index signature-length reloption in bits, not word
  In-Reply-To: <E1b8qT2-0001pv-8z@gemulon.postgresql.org>
  References: <E1b8qT2-0001pv-8z@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