pgsql: Fix calculation of latency of pgbench backslash commands.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix calculation of latency of pgbench backslash commands.
Date: 2015-07-30 11:51:31
Message-ID: E1ZKmN1-0002Jn-DN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix calculation of latency of pgbench backslash commands.

When we loop back to the top of doCustom after processing a backslash
command, we must reset the "now" timestamp, because that's used to
calculate the time spent executing the previous command.

Report and fix by Fabien Coelho. Backpatch to 9.5, where this was broken.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/2e75be6660dbaaf2da09b98c54d47c9fe0ac8cfa

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

Browse pgsql-committers by date

  From Date Subject
Next Message Dean Rasheed 2015-07-30 13:52:18 Re: [COMMITTERS] pgsql: Row-Level Security Policies (RLS)
Previous Message Heikki Linnakangas 2015-07-30 11:21:43 pgsql: Update ax_pthread.m4 to an experimental draft version from upstr