pgsql: Fix latency calculation when there are \sleep commands in the sc

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix latency calculation when there are \sleep commands in the sc
Date: 2016-09-19 20:04:12
Message-ID: E1bm4nU-0002km-2i@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)DEB(dot)2(dot)20(dot)1608231622170(dot)7102(at)lancre>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/40c3fe4980e73acb0db75a3c737a4a52e09d4cf4

Modified Files
--------------
src/bin/pgbench/pgbench.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2016-09-20 08:41:24 pgsql: Fix outdated comments, GIST search queue is not an RBTree anymor
Previous Message Heikki Linnakangas 2016-09-19 18:58:19 pgsql: Remove obsolete warning from docs.