]> 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:43 +0000 (22:55 +0300)
commit40c3fe4980e73acb0db75a3c737a4a52e09d4cf4
treebcd60d2ad9c63dcf8263dc7e5c8c1d2d55332117
parent6cc54f38a9fe1f4103c45a9858804d1d5d4de0fd
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