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 1ez382-0003H6-Ql for pgsql-committers@arkaria.postgresql.org; Thu, 22 Mar 2018 16:31:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ez381-0005mD-2z for pgsql-committers@arkaria.postgresql.org; Thu, 22 Mar 2018 16:31:49 +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 1ez380-0005m4-RB for pgsql-committers@lists.postgresql.org; Thu, 22 Mar 2018 16:31:48 +0000 Received: from smtp-3.mines-paristech.fr ([194.214.158.139] helo=cascavel.ensmp.fr) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ez37r-0000VP-7G for pgsql-committers@lists.postgresql.org; Thu, 22 Mar 2018 16:31:45 +0000 Received: from cri.ensmp.fr (161.200.219.88.rev.sfr.net [88.219.200.161]) (authenticated bits=0) by cascavel.ensmp.fr (8.15.2/8.15.2/JMMC-22/Oct/2013) with ESMTPSA id w2MGVVkE021063 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 22 Mar 2018 17:31:32 +0100 Date: Thu, 22 Mar 2018 17:31:31 +0100 (CET) From: Fabien COELHO X-X-Sender: fabien@lancre To: Teodor Sigaev cc: Tom Lane , pgsql-committers@lists.postgresql.org, Ildar Musin Subject: Re: pgsql: Add general purpose hasing functions to pgbench. In-Reply-To: Message-ID: References: <2576.1521732754@sss.pgh.pa.us> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1007352819-1521736292=:22230" X-Miltered: at cascavel.ensmp.fr with ID 5AB3DA63.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Auth: USER-ID coelho X-j-chkmail-Enveloppe: 5AB3DA63.000 from 161.200.219.88.rev.sfr.net/161.200.219.88.rev.sfr.net/88.219.200.161/cri.ensmp.fr/ List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1007352819-1521736292=:22230 Content-Type: text/plain; charset=US-ASCII; format=flowed > will fix, A blind attempt, if it helps. >> The 32-bit members of the buildfarm aren't very happy with this, >> eg on dromedary: >> >> cache gcc -Wall -Wmissing-prototypes -Wpointer-arith >> -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute >> -Wformat-security -fno-strict-aliasing -fwrapv -g -O2 -ansi -I. -I. >> -I../../../src/interfaces/libpq -I../../../src/include >> -DCOPY_PARSE_PLAN_TREES -DRAW_EXPRESSION_COVERAGE_TEST -c -o command.o >> command.c >> pgbench.c: In function 'getHashFnv1a': >> pgbench.c:945: warning: integer constant is too large for 'long' type >> pgbench.c:952: warning: integer constant is too large for 'long' type >> pgbench.c: In function 'getHashMurmur2': >> pgbench.c:967: warning: integer constant is too large for 'long' type >> pgbench.c:970: warning: integer constant is too large for 'long' type >> pgbench.c:972: warning: integer constant is too large for 'long' type >> pgbench.c:975: warning: integer constant is too large for 'long' type >> pgbench.c:978: warning: integer constant is too large for 'long' type >> >> Looks to me like the constants need to be written with INT64CONST(). >> Also, the fact that the added regression test is passing makes me >> wonder whether it's actually exercising these functions meaningfully. I think that there is at least some coverage (https://coverage.postgresql.org/src/bin/pgbench/pgbench.c.gcov.html) and the function results are also checked for some values in the perl script output. -- Fabien. --8323329-1007352819-1521736292=:22230 Content-Type: text/plain; name=pgbench-hash-fix-1.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=pgbench-hash-fix-1.patch ZGlmZiAtLWdpdCBhL3NyYy9iaW4vcGdiZW5jaC9wZ2JlbmNoLmMgYi9zcmMv YmluL3BnYmVuY2gvcGdiZW5jaC5jDQppbmRleCA4OTQ1NzFlLi41ZTg4MTky IDEwMDY0NA0KLS0tIGEvc3JjL2Jpbi9wZ2JlbmNoL3BnYmVuY2guYw0KKysr IGIvc3JjL2Jpbi9wZ2JlbmNoL3BnYmVuY2guYw0KQEAgLTY0LDkgKzY0LDkg QEANCiAvKg0KICAqIEhhc2hpbmcgY29uc3RhbnRzDQogICovDQotI2RlZmlu ZSBGTlZfUFJJTUUgMHgxMDAwMDAwMDFiMw0KLSNkZWZpbmUgRk5WX09GRlNF VF9CQVNJUyAweGNiZjI5Y2U0ODQyMjIzMjUNCi0jZGVmaW5lIE1NMl9NVUwg MHhjNmE0YTc5MzViZDFlOTk1DQorI2RlZmluZSBGTlZfUFJJTUUgSU5UNjRD T05TVCgweDEwMDAwMDAwMWIzKQ0KKyNkZWZpbmUgRk5WX09GRlNFVF9CQVNJ UyBJTlQ2NENPTlNUKDB4Y2JmMjljZTQ4NDIyMjMyNSkNCisjZGVmaW5lIE1N Ml9NVUwgSU5UNjRDT05TVCgweGM2YTRhNzkzNWJkMWU5OTUpDQogI2RlZmlu ZSBNTTJfUk9UIDQ3DQogDQogLyoNCg== --8323329-1007352819-1521736292=:22230--