pgbench: allow a script weight of zero

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: a1c935d3b71e44ba36530d47c3ccab6cc9b9eafe
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2016-03-29T17:47:10Z
Releases: 9.6.0
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

Files

PathChange+/−
doc/src/sgml/ref/pgbench.sgml modified +12 −11
src/bin/pgbench/pgbench.c modified +10 −3

Documentation touched