pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org, Ildar Musin <i.musin@postgrespro.ru>
Subject: Re: pgsql: Add general purpose hasing functions to pgbench.
Date: Thu, 22 Mar 2018 19:16:10 +0300
Message-ID: <bf713343-4228-5702-e27c-be91e855d5f7@sigaev.ru> (raw)
In-Reply-To: <2576.1521732754@sss.pgh.pa.us>
References: <E1eyfFR-0008VM-Ij@gemulon.postgresql.org>
	<2576.1521732754@sss.pgh.pa.us>

will fix,

Tom Lane wrote:
> Teodor Sigaev <teodor@sigaev.ru> 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/




view thread (5+ messages)  latest in thread

Message-ID: <bf713343-4228-5702-e27c-be91e855d5f7@sigaev.ru>
Permalink:  ../bf713343-4228-5702-e27c-be91e855d5f7@sigaev.ru/
Also on:    postgresql.org/message-id/bf713343-4228-5702-e27c-be91e855d5f7@sigaev.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: teodor@sigaev.ru, tgl@sss.pgh.pa.us, i.musin@postgrespro.ru
  Subject: Re: pgsql: Add general purpose hasing functions to pgbench.
  In-Reply-To: <bf713343-4228-5702-e27c-be91e855d5f7@sigaev.ru>
  References: <E1eyfFR-0008VM-Ij@gemulon.postgresql.org> <2576.1521732754@sss.pgh.pa.us> <bf713343-4228-5702-e27c-be91e855d5f7@sigaev.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox