pgbench: improve multi-script support

Enterprise / PostgreSQL - Alvaro Herrera [alvh.no-ip.org] - 26 January 2016 19:54 UTC

Previously, it was possible to specify one or several custom scripts to run, or only one of the builtin scripts. With this patch it is also possible to specify to run the builtin scripts multiple times, using the new -b option. Also, unify the code for both cases; this eases future pgbench improvements.

Author: Fabien Coelho Review: Michaël Paquier, Álvaro Herrera

8bea3d2 pgbench: improve multi-script support
doc/src/sgml/ref/pgbench.sgml | 74 ++++++---
src/bin/pgbench/pgbench.c | 333 +++++++++++++++++++++++++----------------
2 files changed, 253 insertions(+), 154 deletions(-)

Upstream: git.postgresql.org


  • Share