Fix calculation of latency of pgbench backslash commands.

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 5515ec0b3a9425a0c0e36e26b5774c1568f22b3a
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2015-07-30T11:50:51Z
Releases: 9.6.0
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.

Files

PathChange+/−
src/bin/pgbench/pgbench.c modified +3 −2