]> 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:58:03 +0000 (22:58 +0300)
commitedb5c4097604c90e12649cdf24accc6052140b78
tree2a020d3e8a1138b9a58f3252da97a80741b42701
parent52acf020a11945ae22a910e3ea784bb23ccdd3a7
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