From fafc6f716ade3527643015b04b6b7ebf182bd004 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 20 Dec 2020 13:37:25 -0500 Subject: [PATCH] Doc: improve description of pgbench script weights. Point out the workaround to be used if you want to write a script file name that includes "@". Clean up the text a little. Fabien Coelho, additional wordsmithing by me Discussion: https://postgr.es/m/1c4e81550d214741827a03292222db8d@G08CNEXMBPEKD06.g08.fujitsu.local --- doc/src/sgml/ref/pgbench.sgml | 44 +++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/doc/src/sgml/ref/pgbench.sgml b/doc/src/sgml/ref/pgbench.sgml index a0eeb71baca..49acb8ad37d 100644 --- a/doc/src/sgml/ref/pgbench.sgml +++ b/doc/src/sgml/ref/pgbench.sgml @@ -269,15 +269,19 @@ pgbench options dbname - Add the specified built-in script to the list of executed scripts. - An optional integer weight after @ allows to adjust the - probability of drawing the script. If not specified, it is set to 1. - Available built-in scripts are: tpcb-like, - simple-update and select-only. + Add the specified built-in script to the list of scripts to be executed. + Available built-in scripts are: tpcb-like, + simple-update and select-only. Unambiguous prefixes of built-in names are accepted. - With special name list, show the list of built-in scripts + With the special name list, show the list of built-in scripts and exit immediately. + + Optionally, write an integer weight after @ to + adjust the probability of selecting this script versus other ones. + The default weight is 1. + See below for details. + @@ -331,10 +335,16 @@ pgbench options dbname - Add a transaction script read from filename to - the list of executed scripts. - An optional integer weight after @ allows to adjust the - probability of drawing the test. + Add a transaction script read from filename + to the list of scripts to be executed. + + + Optionally, write an integer weight after @ to + adjust the probability of selecting this script versus other ones. + The default weight is 1. + (To use a script file name that includes an @ + character, append a weight so that there is no ambiguity, for + example filen@me@1.) See below for details. @@ -700,14 +710,14 @@ pgbench options dbname What is the <quote>Transaction</> Actually Performed in <application>pgbench</application>? - pgbench executes test scripts chosen randomly + pgbench executes test scripts chosen randomly from a specified list. - They include built-in scripts with