9.5a1 BUG FIX: pgbench negative latencies

Lists: pgsql-hackers
From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: 9.5a1 BUG FIX: pgbench negative latencies
Date: 2015-07-27 12:43:15
Message-ID: alpine.DEB.2.10.1507271432160.3538@sto
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers


Under 9.5a1 "pgbench -r" negative latencies are reported on meta commands,
probably as an oversight of 84f0ea3f.

This patch ensures that "now" is reset on each loop inside doCustom.

--
Fabien.

Attachment Content-Type Size
95a1-pgbench-latencies.patch text/x-diff 910 bytes

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>, PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 9.5a1 BUG FIX: pgbench negative latencies
Date: 2015-07-30 11:52:17
Message-ID: 55BA0FF1.1090501@iki.fi
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-hackers

On 07/27/2015 03:43 PM, Fabien COELHO wrote:
> Under 9.5a1 "pgbench -r" negative latencies are reported on meta commands,
> probably as an oversight of 84f0ea3f.
>
> This patch ensures that "now" is reset on each loop inside doCustom.

Applied, thanks!

- Heikki