Fix around conn_duration in pgbench
Yugo Nagata <nagata@sraoss.co.jp>
From: Yugo NAGATA <nagata@sraoss.co.jp>
To: pgsql-hackers@postgresql.org
Date: 2021-06-14T06:11:55Z
Lists: pgsql-hackers
Attachments
- pgbench_conn_duration.patch (text/x-diff) patch
Hi, TState has a field called "conn_duration" and this is, the comment says, "cumulated connection and deconnection delays". This value is summed over threads and reported as "average connection time" under -C/--connect. If this options is not specified, the value is never used. However, I found that conn_duration is calculated even when -C/--connect is not specified, which is waste. SO we can remove this code as fixed in the attached patch. In addition, deconnection delays are not cumulated even under -C/--connect in spite of mentioned in the comment. I also fixed this in the attached patch. Regards, Yugo Nagata -- Yugo NAGATA <nagata@sraoss.co.jp>
Commits
-
pgbench: Fix bug in measurement of disconnection delays.
- d760d942c73c 14.0 landed
- 4dc528bfa7da 15.0 landed
-
pgbench: Avoid unnecessary measurement of connection delays.
- efe2382d5ade 14.0 landed
- bfd4567b8849 15.0 landed
-
pgbench: Improve time logic.
- 547f04e7348b 14.0 cited