Re: pgsql: Add general purpose hasing functions to pgbench.

Поиск
Список
Период
Сортировка
От Ildar Musin
Тема Re: pgsql: Add general purpose hasing functions to pgbench.
Дата
Msg-id 96ddca3b-3f30-4fd8-1ad2-205dcd93154e@postgrespro.ru
обсуждение исходный текст
Ответ на Re: pgsql: Add general purpose hasing functions to pgbench.  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-committers
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 



В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Add \if support to pgbench
Следующее
От: Andres Freund
Дата:
Сообщение: pgsql: Add helpers for emitting LLVM IR.