Re: pgbench's expression parsing & negative numbers

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Date: 2018-07-13T08:46:23Z
Lists: pgsql-hackers

Attachments

Hello Andres,

>> I'll come up with a patch for that sometime soon.
>
> ISTM that you have not sent any patch on the subject, otherwise I would 
> have reviewed it. Maybe I could do one some time later, unless you think 
> that I should not.

Here is a patch which detects pgbench overflows on int & double constants, 
and on integer operators.

-- 
Fabien.

Commits

  1. Correct overflow handling in pgbench.