Re: pgsql: Add Bloom filter implementation. - Mailing list pgsql-committers

From Peter Eisentraut
Subject Re: pgsql: Add Bloom filter implementation.
Date
Msg-id d1cc82ed-d07d-cef2-7c00-2e987f121648@2ndquadrant.com
Whole thread Raw
In response to pgsql: Add Bloom filter implementation.  (Andres Freund <andres@anarazel.de>)
Responses Re: pgsql: Add Bloom filter implementation.  (Peter Geoghegan <pg@bowt.ie>)
List pgsql-committers
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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pgsql: Transforms for jsonb to PL/Perl
Next
From: Teodor Sigaev
Date:
Subject: pgsql: Add prefix operator for TEXT type.