forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcae0f3c
committed
pgbench: Improve result outputs related to failed transactions.
Previously, per-script statistics were never output when alltransactions failed due to serialization or deadlock errors. However,it is reasonable to report such information if there are ones evenwhen there are no successful transaction since these failedtransactions are now objects to be reported.Meanwhile, if the total number of successful, skipped, and failedtransactions is zero, we don't have to report the number of failedtransactions as similar to the number of skipped transactions, whichavoids to print "NaN%" in lines on failed transaction reports.Also, the number of transactions in per-script results now includesskipped and failed transactions. It prevents to print "total of NaN%"when any transactions are not successfully processed. The number oftransactions actually processed per-script and TPS based on it are nowoutput explicitly in a separate line.Author: Yugo NagataReviewed-by: Tatsuo IshiiDiscussion:https://postgr.es/m/20240921003544.2436ef8da9c5c8cb963c651b%40sraoss.co.jp1 parent161320b commitcae0f3c
1 file changed
+46
-35
lines changedLines changed: 46 additions & 35 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6391 | 6391 |
| |
6392 | 6392 |
| |
6393 | 6393 |
| |
| 6394 | + | |
| 6395 | + | |
| 6396 | + | |
| 6397 | + | |
| 6398 | + | |
| 6399 | + | |
| 6400 | + | |
6394 | 6401 |
| |
6395 | 6402 |
| |
6396 | 6403 |
| |
| |||
6412 | 6419 |
| |
6413 | 6420 |
| |
6414 | 6421 |
| |
6415 |
| - | |
6416 |
| - | |
6417 |
| - | |
6418 |
| - | |
6419 | 6422 |
| |
6420 | 6423 |
| |
6421 | 6424 |
| |
| |||
6483 | 6486 |
| |
6484 | 6487 |
| |
6485 | 6488 |
| |
6486 |
| - | |
| 6489 | + | |
6487 | 6490 |
| |
6488 | 6491 |
| |
6489 | 6492 |
| |
6490 |
| - | |
6491 |
| - | |
6492 |
| - | |
6493 |
| - | |
6494 |
| - | |
6495 |
| - | |
6496 |
| - | |
| 6493 | + | |
| 6494 | + | |
6497 | 6495 |
| |
6498 |
| - | |
| 6496 | + | |
6499 | 6497 |
| |
6500 |
| - | |
6501 |
| - | |
6502 |
| - | |
6503 |
| - | |
6504 |
| - | |
6505 |
| - | |
6506 |
| - | |
6507 |
| - | |
6508 |
| - | |
| 6498 | + | |
| 6499 | + | |
6509 | 6500 |
| |
6510 |
| - | |
6511 |
| - | |
6512 |
| - | |
6513 |
| - | |
6514 |
| - | |
6515 |
| - | |
6516 |
| - | |
6517 |
| - | |
6518 |
| - | |
| 6501 | + | |
| 6502 | + | |
| 6503 | + | |
6519 | 6504 |
| |
6520 |
| - | |
6521 |
| - | |
6522 |
| - | |
6523 |
| - | |
| 6505 | + | |
| 6506 | + | |
| 6507 | + | |
| 6508 | + | |
| 6509 | + | |
| 6510 | + | |
| 6511 | + | |
| 6512 | + | |
| 6513 | + | |
| 6514 | + | |
| 6515 | + | |
6524 | 6516 |
| |
| 6517 | + | |
| 6518 | + | |
| 6519 | + | |
| 6520 | + | |
| 6521 | + | |
| 6522 | + | |
| 6523 | + | |
| 6524 | + | |
| 6525 | + | |
| 6526 | + | |
| 6527 | + | |
| 6528 | + | |
| 6529 | + | |
| 6530 | + | |
| 6531 | + | |
| 6532 | + | |
| 6533 | + | |
| 6534 | + | |
| 6535 | + | |
6525 | 6536 |
| |
6526 | 6537 |
| |
6527 | 6538 |
| |
|
0 commit comments
Comments
(0)