From: Michael Paquier <michael@paquier.xyz>
To: Thomas Munro <tmunro@postgresql.org>
Cc: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: pgbench: Improve time logic.
Date: Wed, 10 Mar 2021 16:08:44 +0900
Message-ID: <YEhwfJnXkPYBtKSF@paquier.xyz> (raw)
In-Reply-To: <E1lJqpF-00064e-C6@gemulon.postgresql.org>
References: <E1lJqpF-00064e-C6@gemulon.postgresql.org>
Hi Thomas,
On Wed, Mar 10, 2021 at 04:52:01AM +0000, Thomas Munro wrote:
> 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.
The buildfarm is complaining after this commit with lapwing:
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=lapwing&dt=2021-03-10%2006%3A40%3A10
pgbench.c:3569:6: error: format '%ld' expects argument of type 'long
int', but argument 6 has type 'pg_time_usec_t' [-Werror=format]
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz, tmunro@postgresql.org
Subject: Re: pgsql: pgbench: Improve time logic.
In-Reply-To: <YEhwfJnXkPYBtKSF@paquier.xyz>
References: <E1lJqpF-00064e-C6@gemulon.postgresql.org> <YEhwfJnXkPYBtKSF@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox