Re: Fix around conn_duration in pgbench

Fabien COELHO <coelho@cri.ensmp.fr>

From: Fabien COELHO <coelho@cri.ensmp.fr>
To: Yugo NAGATA <nagata@sraoss.co.jp>
Cc: Tatsuo Ishii <ishii@sraoss.co.jp>, masao.fujii@oss.nttdata.com, asifr.rehman@gmail.com, PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-08-31T07:56:39Z
Lists: pgsql-hackers
>> I would think we should leave as it is for pg13 and before to not surprise users.
>
> Ok. Thank you for your opinion. I also agree with not changing the behavior of
> long-stable branches, and I think this is the same opinion as Fujii-san.
>
> Attached is the patch to fix to measure disconnection delays that can be applied to
> pg14 or later.

I agree that this is not a bug fix, so this is not a matter suitable for 
for backpatching. Maybe for pg14.

-- 
Fabien.



Commits

  1. pgbench: Fix bug in measurement of disconnection delays.

  2. pgbench: Avoid unnecessary measurement of connection delays.

  3. pgbench: Improve time logic.