Re: Overflow hazard in pgbench

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-06-29T09:47:11Z
Lists: pgsql-hackers
>> The failure still represents a gcc bug, because we're using -fwrapv which 
>> should disable that assumption.
>
> Ok, I'll report it.

Done at https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101254

-- 
Fabien.



Commits

  1. Don't depend on -fwrapv semantics in pgbench's random() function.