pgbench: Improve time logic. Instead of instr_time (struct timespec) and the INSTR_XXX macros, introduce pg_time_usec_t and use integer arithmetic. Don't include the connection time in TPS unless using -C mode, but report it separately.
Author: Fabien COELHO <[email protected]> Reviewed-by: Kyotaro Horiguchi <[email protected]> Reviewed-by: Hayato Kuroda <[email protected]> Discussion: https://postgr.es/m/20200227180100.zyvjwzcpiokfsqm2%40alap3.anarazel.de Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/547f04e7348b6ed992bd4a197d39661fe7c25097 Modified Files -------------- doc/src/sgml/ref/pgbench.sgml | 39 ++-- src/bin/pgbench/pgbench.c | 407 ++++++++++++++++------------------- src/include/portability/instr_time.h | 28 +++ src/tools/pgindent/typedefs.list | 1 + 4 files changed, 231 insertions(+), 244 deletions(-)
