Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3O2W-0003Uy-TE for pgsql-committers@arkaria.postgresql.org; Tue, 03 Apr 2018 15:40:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f3O2V-0004Ts-6R for pgsql-committers@arkaria.postgresql.org; Tue, 03 Apr 2018 15:40:03 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3O2T-0004TX-WB for pgsql-committers@lists.postgresql.org; Tue, 03 Apr 2018 15:40:03 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3O2Q-0002ac-NH for pgsql-committers@lists.postgresql.org; Tue, 03 Apr 2018 15:40:00 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 5FE5020EC4; Tue, 3 Apr 2018 11:39:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 03 Apr 2018 11:39:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=MA7wT1 Q2bN2NqF+i0/E4ZAkJduR7Nzy54eGuvFULZkk=; b=TN5sW9hkx3YJTZGqMnRTrl 3lhAGYRv0pCJmS+aD+IUNzVPWQq5QO0RSwit+5Apk841dJnqrShg9kev0xj/AAWR jpG0W3Lb8T9IrOzA2HvYkV4OZY3t7+2vb6MXuDEgzaVxnAWwRuLJhzo7FNH3lQty fShfo8z0PgwKToEFl38fiBYLwAc5cG3r2LePvgzpZOnIaYuTYkjgA9DX3PhFfL90 fAnXhJ74cM/Pi6pYZO35jVD/L74FzpvBxl8SnYO4eOfvWfyR55Xqs0jHPZQLFEoF ArqpGepAjEjlAWEQk6+/roNWHY7pd/eOZwZY+CTYYxipRSdqdOyUJRKU9jAS6exA == X-ME-Sender: Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id 130D2E4412; Tue, 3 Apr 2018 11:39:57 -0400 (EDT) Subject: Re: pgsql: Add Bloom filter implementation. To: Andres Freund , pgsql-committers@lists.postgresql.org References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Tue, 3 Apr 2018 11:39:56 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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