]> granicus.if.org Git - postgresql/commit
pgbench: allow a script weight of zero
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 29 Mar 2016 17:13:51 +0000 (14:13 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
Tue, 29 Mar 2016 17:47:10 +0000 (14:47 -0300)
commita1c935d3b71e44ba36530d47c3ccab6cc9b9eafe
treee5e8aa9c61c10d699ae4b7dee1107fba261e27bd
parentad9566470b1ba63167d1dc7ae2cb52d88a448f76
pgbench: allow a script weight of zero

This refines the previous weight range and allows a script to be "turned
off" by passing a zero weight, which is useful when scripting multiple
pgbench runs.

I did not apply the suggested warning when a script uses zero weight; we
use the principle elsewhere that if there's nothing to be done, do
nothing quietly.

Adjust docs accordingly.

Author: Jeff Janes, Fabien Coelho
doc/src/sgml/ref/pgbench.sgml
src/bin/pgbench/pgbench.c