@@ -269,15 +269,19 @@ pgbench <optional> <replaceable>options</> </optional> <replaceable>dbname</>
269
269
<term><option>--builtin</>=<replaceable>scriptname[@weight]</></term>
270
270
<listitem>
271
271
<para>
272
- Add the specified built-in script to the list of executed scripts.
273
- An optional integer weight after <literal>@</> allows to adjust the
274
- probability of drawing the script. If not specified, it is set to 1.
275
- Available built-in scripts are: <literal>tpcb-like</>,
276
- <literal>simple-update</> and <literal>select-only</>.
272
+ Add the specified built-in script to the list of scripts to be executed.
273
+ Available built-in scripts are: <literal>tpcb-like</literal>,
274
+ <literal>simple-update</literal> and <literal>select-only</literal>.
277
275
Unambiguous prefixes of built-in names are accepted.
278
- With special name <literal>list</>, show the list of built-in scripts
276
+ With the special name <literal>list</literal >, show the list of built-in scripts
279
277
and exit immediately.
280
278
</para>
279
+ <para>
280
+ Optionally, write an integer weight after <literal>@</literal> to
281
+ adjust the probability of selecting this script versus other ones.
282
+ The default weight is 1.
283
+ See below for details.
284
+ </para>
281
285
</listitem>
282
286
</varlistentry>
283
287
@@ -331,10 +335,16 @@ pgbench <optional> <replaceable>options</> </optional> <replaceable>dbname</>
331
335
<term><option>--file=</><replaceable>filename[@weight]</></term>
332
336
<listitem>
333
337
<para>
334
- Add a transaction script read from <replaceable>filename</> to
335
- the list of executed scripts.
336
- An optional integer weight after <literal>@</> allows to adjust the
337
- probability of drawing the test.
338
+ Add a transaction script read from <replaceable>filename</replaceable>
339
+ to the list of scripts to be executed.
340
+ </para>
341
+ <para>
342
+ Optionally, write an integer weight after <literal>@</literal> to
343
+ adjust the probability of selecting this script versus other ones.
344
+ The default weight is 1.
345
+ (To use a script file name that includes an <literal>@</literal>
346
+ character, append a weight so that there is no ambiguity, for
347
+ example <literal>filen@me@1</literal>.)
338
348
See below for details.
339
349
</para>
340
350
</listitem>
@@ -694,14 +704,14 @@ pgbench <optional> <replaceable>options</> </optional> <replaceable>dbname</>
694
704
<title>What is the <quote>Transaction</> Actually Performed in <application>pgbench</application>?</title>
695
705
696
706
<para>
697
- <application>pgbench</> executes test scripts chosen randomly
707
+ <application>pgbench</application > executes test scripts chosen randomly
698
708
from a specified list.
699
- They include built-in scripts with <option>-b</> and
700
- user-provided custom scripts with <option>-f</>.
701
- Each script may be given a relative weight specified after a
702
- <literal>@</> so as to change its drawing probability.
703
- The default weight is <literal>1</>.
704
- Scripts with a weight of <literal>0</> are ignored.
709
+ The scripts may include built-in scripts specified with <option>-b</option>
710
+ and user-provided scripts specified with <option>-f</option >.
711
+ Each script may be given a relative weight specified after an
712
+ <literal>@</literal > so as to change its selection probability.
713
+ The default weight is <literal>1</literal >.
714
+ Scripts with a weight of <literal>0</literal > are ignored.
705
715
</para>
706
716
707
717
<para>
0 commit comments