]> granicus.if.org Git - postgresql/commit
Fix latency calculation when there are \sleep commands in the script.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 19 Sep 2016 19:55:43 +0000 (22:55 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Mon, 19 Sep 2016 19:55:50 +0000 (22:55 +0300)
commitf65764a04a0cccbcd53bf413d6f73ecedaae21c6
treeba87f46e0b8eed3c37261d66dea61ea54308f47d
parent156f974f56543365b89f96182e9dfa16f4287e9a
Fix latency calculation when there are \sleep commands in the script.

We can't use txn_scheduled to hold the sleep-until time for \sleep, because
that interferes with calculation of the latency of the transaction as whole.

Backpatch to 9.4, where this bug was introduced.

Fabien COELHO

Discussion: <alpine.DEB.2.20.1608231622170.7102@lancre>
src/bin/pgbench/pgbench.c