From: Ildar Musin <i.musin@postgrespro.ru>
To: Fabien COELHO <coelho@cri.ensmp.fr>
To: Teodor Sigaev <teodor@sigaev.ru>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add general purpose hasing functions to pgbench.
Date: Thu, 22 Mar 2018 21:52:48 +0300
Message-ID: <96ddca3b-3f30-4fd8-1ad2-205dcd93154e@postgrespro.ru> (raw)
In-Reply-To: <alpine.DEB.2.20.1803221728100.22230@lancre>
References: <E1eyfFR-0008VM-Ij@gemulon.postgresql.org>
<2576.1521732754@sss.pgh.pa.us>
<bf713343-4228-5702-e27c-be91e855d5f7@sigaev.ru>
<alpine.DEB.2.20.1803221728100.22230@lancre>
Hello all,
22/03/2018 19:31, Fabien COELHO пишет:
>>>
>>> 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.
>
As Fabien said output values for some particular inputs are checked in
tests. The fact that test passed apparently shows that compiler is smart
enough to recognize those constants as 'long long' and use them
accordingly in expressions.
--
Ildar Musin
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
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: i.musin@postgrespro.ru, coelho@cri.ensmp.fr, teodor@sigaev.ru, tgl@sss.pgh.pa.us
Subject: Re: pgsql: Add general purpose hasing functions to pgbench.
In-Reply-To: <96ddca3b-3f30-4fd8-1ad2-205dcd93154e@postgrespro.ru>
References: <E1eyfFR-0008VM-Ij@gemulon.postgresql.org> <2576.1521732754@sss.pgh.pa.us> <bf713343-4228-5702-e27c-be91e855d5f7@sigaev.ru> <alpine.DEB.2.20.1803221728100.22230@lancre> <96ddca3b-3f30-4fd8-1ad2-205dcd93154e@postgrespro.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