Re: Error on pgbench logs

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Michael Paquier <michael@paquier.xyz>
Cc: Kyotaro Horiguchi <horikyota.ntt@gmail.com>, rulyox@gmail.com, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-06-10T21:29:30Z
Lists: pgsql-hackers

Attachments

Bonjour Michaël,

Here is an updated patch. While having a look at Kyotaro-san patch, I 
noticed that the aggregate stuff did not print the last aggregate. I think 
that it is a side effect of switching the precision from per-second to 
per-µs. I've done an attempt at also fixing that which seems to work.

-- 
Fabien.

Commits

  1. Fix pgbench timestamp bugs.

  2. pgbench: Improve time logic.

  3. Make [U]INT64CONST safe for use in #if conditions.

  4. Teach libpq to detect integer overflow in the row count of a PGresult.