]> granicus.if.org Git - postgresql/commit
Fix calculation of latency of pgbench backslash commands.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 30 Jul 2015 11:50:51 +0000 (14:50 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Thu, 30 Jul 2015 11:50:51 +0000 (14:50 +0300)
commit5515ec0b3a9425a0c0e36e26b5774c1568f22b3a
treed96ec8345b91a16eab72a53644a708f04649f688
parenta2932283c2a39efd2f713f647c9f7f3d34123bb3
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