pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add Bloom filter implementation.
Date: Tue, 3 Apr 2018 11:39:56 -0400
Message-ID: <d1cc82ed-d07d-cef2-7c00-2e987f121648@2ndquadrant.com> (raw)
In-Reply-To: <E1f2Ruu-00015M-1A@gemulon.postgresql.org>
References: <E1f2Ruu-00015M-1A@gemulon.postgresql.org>

On 3/31/18 21:36, Andres Freund wrote:
> Add Bloom filter implementation.

There is a compiler warning in the tests, with gcc-7:

test_bloomfilter.c: In function 'test_bloomfilter':
test_bloomfilter.c:40:38: error: '__builtin_snprintf' output may be
truncated before the last format character [-Werror=format-truncation=]
   snprintf(element, sizeof(element), "i" INT64_FORMAT, i);
                                      ^

This can be fixed by allocating one more byte for the possible sign, or
doing the whole thing in unsigned.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (4+ messages)  latest in thread

Message-ID: <d1cc82ed-d07d-cef2-7c00-2e987f121648@2ndquadrant.com>
Permalink:  ../d1cc82ed-d07d-cef2-7c00-2e987f121648@2ndquadrant.com/
Also on:    postgresql.org/message-id/d1cc82ed-d07d-cef2-7c00-2e987f121648@2ndquadrant.com

 · 

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: peter.eisentraut@2ndquadrant.com, andres@anarazel.de
  Subject: Re: pgsql: Add Bloom filter implementation.
  In-Reply-To: <d1cc82ed-d07d-cef2-7c00-2e987f121648@2ndquadrant.com>
  References: <E1f2Ruu-00015M-1A@gemulon.postgresql.org> <d1cc82ed-d07d-cef2-7c00-2e987f121648@2ndquadrant.com>

* 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