Re: Fix around conn_duration in pgbench
Fujii Masao <masao.fujii@oss.nttdata.com>
From: Fujii Masao <masao.fujii@oss.nttdata.com>
To: Yugo NAGATA <nagata@sraoss.co.jp>
Cc: Asif Rehman <asifr.rehman@gmail.com>, pgsql-hackers@lists.postgresql.org,
Fabien COELHO <coelho@cri.ensmp.fr>
Date: 2021-07-28T17:23:22Z
Lists: pgsql-hackers
On 2021/07/28 16:15, Yugo NAGATA wrote: >> I found another disconnect_all(). >> >> /* XXX should this be connection time? */ >> disconnect_all(state, nclients); >> >> The measurement is also not necessary here. >> So the above comment should be removed or updated? > > I think this disconnect_all will be a no-op because all connections should > be already closed in threadRun(), but I left it just to be sure that > connections are all cleaned-up. I updated the comment for explaining above. > > I attached the updated patch. Could you please look at this? Thanks for updating the patch! LGTM. Barring any objection, I will commit the patch. Regards, -- Fujii Masao Advanced Computing Technology Center Research and Development Headquarters NTT DATA CORPORATION
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