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 1ez2t2-0002Ee-Sk for pgsql-committers@arkaria.postgresql.org; Thu, 22 Mar 2018 16:16:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ez2t1-00025M-RX for pgsql-committers@arkaria.postgresql.org; Thu, 22 Mar 2018 16:16:19 +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 1ez2t1-00025D-JG for pgsql-committers@lists.postgresql.org; Thu, 22 Mar 2018 16:16:19 +0000 Received: from hook.sigaev.ru ([93.180.27.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ez2su-0008Sm-O7 for pgsql-committers@lists.postgresql.org; Thu, 22 Mar 2018 16:16:18 +0000 Received: from xor.sai.msu.ru (unknown [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: teodor) by hook.sigaev.ru (Postfix) with ESMTPSA id B1333B191AA; Thu, 22 Mar 2018 19:16:10 +0300 (MSK) Subject: Re: pgsql: Add general purpose hasing functions to pgbench. To: Tom Lane Cc: pgsql-committers@lists.postgresql.org, Ildar Musin References: <2576.1521732754@sss.pgh.pa.us> From: Teodor Sigaev Message-ID: Date: Thu, 22 Mar 2018 19:16:10 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1 MIME-Version: 1.0 In-Reply-To: <2576.1521732754@sss.pgh.pa.us> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk will fix, Tom Lane wrote: > 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-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. > > regards, tom lane > -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/