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 1ez2Cp-0007ir-CK for pgsql-committers@arkaria.postgresql.org; Thu, 22 Mar 2018 15:32:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ez2Co-0002gf-9S for pgsql-committers@arkaria.postgresql.org; Thu, 22 Mar 2018 15:32:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ez2Co-0002gW-4Z for pgsql-committers@lists.postgresql.org; Thu, 22 Mar 2018 15:32:42 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ez2Cl-0002Q6-Fw for pgsql-committers@lists.postgresql.org; Thu, 22 Mar 2018 15:32:41 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w2MFWYAx002577; Thu, 22 Mar 2018 11:32:34 -0400 From: Tom Lane To: Teodor Sigaev cc: pgsql-committers@lists.postgresql.org, Fabien COELHO Subject: Re: pgsql: Add general purpose hasing functions to pgbench. In-reply-to: References: Comments: In-reply-to Teodor Sigaev message dated "Wed, 21 Mar 2018 15:01:53 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2575.1521732754.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 22 Mar 2018 11:32:34 -0400 Message-ID: <2576.1521732754@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Teodor Sigaev writes: > Add general purpose hasing functions to pgbench. 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-s= tatement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-= strict-aliasing -fwrapv -g -O2 -ansi -I. -I. -I../../../src/interfaces/lib= pq -I../../../src/include -DCOPY_PARSE_PLAN_TREES -DRAW_EXPRESSION_COVERA= GE_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. regards, tom lane