@@ -479,11 +479,12 @@ pgbench <optional> <replaceable>options</> </optional> <replaceable>dbname</>
479
479
</para>
480
480
<note>
481
481
<para>
482
- The total sum of retries can be greater than the number of retried
483
- transactions multiplied by the maximum retries number
484
- (<option>max_tries</> - 1). See
485
- <xref linkend="transactions-and-scripts"
486
- endterm="transactions-and-scripts-title"> for more information.
482
+ If a custom script contains multiple transactions, its run is reported
483
+ as failed if any of its transactions ended with a
484
+ serialization/deadlock failure. The run of this script is reported as
485
+ retried if any of its transactions was retried after a
486
+ serialization/deadlock failure. The total sum of retries includes the
487
+ retries for all transactions in this script.
487
488
</para>
488
489
</note>
489
490
</listitem>
@@ -544,21 +545,6 @@ pgbench <optional> <replaceable>options</> </optional> <replaceable>dbname</>
544
545
separately.
545
546
</para>
546
547
547
- <para>
548
- The execution time of transactions with serialization or deadlock
549
- failures is excluded from the report, as if these transactions were
550
- skipped.
551
- </para>
552
-
553
- <note>
554
- <para>
555
- In scripts with several transactions, both serialization and deadlock
556
- failures can occur. For more information, see
557
- <xref linkend="transactions-and-scripts"
558
- endterm="transactions-and-scripts-title">.
559
- </para>
560
- </note>
561
-
562
548
<para>
563
549
A high schedule lag time is an indication that the system cannot
564
550
process transactions at the specified rate, with the chosen number of
@@ -781,8 +767,8 @@ pgbench <optional> <replaceable>options</> </optional> <replaceable>dbname</>
781
767
<refsect1>
782
768
<title>Notes</title>
783
769
784
- <refsect2 id="transactions-and-scripts" >
785
- <title id="transactions-and-scripts-title" >What is the <quote>Transaction</> Actually Performed in <application>pgbench</application>?</title>
770
+ <refsect2>
771
+ <title>What is the <quote>Transaction</> Actually Performed in <application>pgbench</application>?</title>
786
772
787
773
<para>
788
774
<application>pgbench</> executes test scripts chosen randomly
@@ -1257,6 +1243,14 @@ END;
1257
1243
for more information).
1258
1244
</para>
1259
1245
1246
+ <note>
1247
+ <para>
1248
+ If a custom script contains multiple transactions, its <replaceable>time</>
1249
+ will be reported as <literal>failed</> if any of its transactions ended
1250
+ with a serialization/deadlock failure.
1251
+ </para>
1252
+ </note>
1253
+
1260
1254
<para>
1261
1255
Here is a snippet of the log file generated:
1262
1256
<screen>
@@ -1344,10 +1338,15 @@ END;
1344
1338
</para>
1345
1339
1346
1340
<note>
1347
- <para>The total sum of retries can be greater than the number of retried
1348
- transactions multiplied by the maximum retries number
1349
- (<option>max_tries</> - 1). See <xref linkend="transactions-and-scripts"
1350
- endterm="transactions-and-scripts-title"> for more information.
1341
+ <para>
1342
+ If a custom script contains multiple transactions and any of its
1343
+ transactions ended with a serialization/deadlock failure, its run is counted
1344
+ in <replaceable>failures</replaceable> only once. Similarly, if any of these
1345
+ transactions was retried, the <replaceable>retried_transactions</>
1346
+ statistics is increased by one, regardless of the number of retried
1347
+ transactions. However, the <replaceable>serialization_retries</> and
1348
+ <replaceable>deadlock_retries</> include the sum of all retries after the
1349
+ corresponding failures for all transactions in this script.
1351
1350
</para>
1352
1351
</note>
1353
1352
@@ -1408,10 +1407,10 @@ END;
1408
1407
1409
1408
<note>
1410
1409
<para>
1411
- The total sum of per-command failures can be greater than the number of
1412
- failed transactions. The same for retries. See
1413
- <xref linkend="transactions- and-scripts"
1414
- endterm="transactions-and- scripts-title"> for more information .
1410
+ If a custom script contains multiple transactions, each failed or retried
1411
+ transaction is counted. Thus, the total sum of per-command failures and/or
1412
+ retries can be greater than the number of failed and/or retried transaction
1413
+ scripts correspondingly .
1415
1414
</para>
1416
1415
</note>
1417
1416
@@ -1533,22 +1532,22 @@ script statistics:
1533
1532
</para>
1534
1533
1535
1534
<para>
1536
- The main report contains the number of failed transactions if it is non-zero
1537
- (see <xref linkend="transactions-and-scripts"
1538
- endterm="transactions-and-scripts-title"> for more information). If the total
1539
- number of retried transactions is non-zero, the main report also contains
1540
- the total number of retried transactions, the total number of retries, and
1541
- the number of retries after each kind of
1542
- failure (use option <option>--max-tries</> to make it possible). The
1543
- per-statement report inherits all columns from the main report.
1535
+ The main report contains the number of failed transactions if it is non-zero.
1536
+ If the total number of retried transactions is non-zero, the main report also
1537
+ contains the statistics related to retries: the total number of retried
1538
+ transactions, the total number of retries, and the number of retries after
1539
+ each kind of failure (use option <option>--max-tries</> to make it possible).
1540
+ The per-statement report inherits all columns from the main report.
1544
1541
</para>
1545
1542
<note>
1546
- <para>The total sum of retries can be greater than the number of
1547
- retried transactions multiplied by the maximum retries number
1548
- (<option>max_tries</> - 1). See <xref linkend="transactions-and-scripts"
1549
- endterm="transactions-and-scripts-title"> for more information.
1550
- </para>
1551
- </note>
1543
+ <para>
1544
+ If a custom script contains multiple transactions, its run is reported as
1545
+ failed if any of its transactions ended with a serialization/deadlock
1546
+ failure. The run of this script is reported as retried if any of its
1547
+ transactions was retried after a serialization/deadlock failure. The total
1548
+ sum of retries includes the retries for all transactions in this script.
1549
+ </para>
1550
+ </note>
1552
1551
</refsect2>
1553
1552
1554
1553
<refsect2>
0 commit comments