Fix calculation of latency of pgbench backslash commands.
authorHeikki Linnakangas
Thu, 30 Jul 2015 11:50:51 +0000 (14:50 +0300)
committerHeikki Linnakangas
Thu, 30 Jul 2015 11:51:08 +0000 (14:51 +0300)
commit2e75be6660dbaaf2da09b98c54d47c9fe0ac8cfa
tree27c72c4e9a7a3efeec723e9393cc50e20ba6cb33
parenta664d4790e5f93726f264c77c044a7ce4c1a675c
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.
src/bin/pgbench/pgbench.c