Commit 3c66264
committed
Allow pgbench to exit immediately when any client is aborted.
Previously when client was aborted due to some error during
benchmarking, other clients continued their run until certain number
of transactions specified -t was reached or the time specified by -T
was expired. At the end, the results are printed with caution: "Run
was aborted; the above results are incomplete" shows.
New option "--exit-on-abort" allows pgbench to exit immediately in
this case so that users could quickly fix the cause of the failure and
try again another round of benchmarking.
Author: Yugo Nagata
Reviewed-by: Fabien COELHO, Tatsuo Ishii
Discussion: https://postgr.es/m/flat/20230804130325.df32e60879c38c92bca64207%40sraoss.co.jp1 parent 8bf7db0 commit 3c66264
File tree
3 files changed
+83
-4
lines changed- doc/src/sgml/ref
- src/bin/pgbench
- t
3 files changed
+83
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
771 | 789 | | |
772 | 790 | | |
773 | 791 | | |
| |||
985 | 1003 | | |
986 | 1004 | | |
987 | 1005 | | |
988 | | - | |
| 1006 | + | |
| 1007 | + | |
989 | 1008 | | |
990 | 1009 | | |
991 | 1010 | | |
| |||
2801 | 2820 | | |
2802 | 2821 | | |
2803 | 2822 | | |
| 2823 | + | |
| 2824 | + | |
2804 | 2825 | | |
2805 | 2826 | | |
2806 | 2827 | | |
2807 | 2828 | | |
2808 | 2829 | | |
2809 | 2830 | | |
2810 | | - | |
2811 | | - | |
| 2831 | + | |
| 2832 | + | |
| 2833 | + | |
2812 | 2834 | | |
2813 | 2835 | | |
2814 | 2836 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
| 768 | + | |
| 769 | + | |
768 | 770 | | |
769 | 771 | | |
770 | 772 | | |
| |||
911 | 913 | | |
912 | 914 | | |
913 | 915 | | |
| 916 | + | |
914 | 917 | | |
915 | 918 | | |
916 | 919 | | |
| |||
6617 | 6620 | | |
6618 | 6621 | | |
6619 | 6622 | | |
| 6623 | + | |
6620 | 6624 | | |
6621 | 6625 | | |
6622 | 6626 | | |
| |||
6950 | 6954 | | |
6951 | 6955 | | |
6952 | 6956 | | |
| 6957 | + | |
| 6958 | + | |
| 6959 | + | |
| 6960 | + | |
6953 | 6961 | | |
6954 | 6962 | | |
6955 | 6963 | | |
| |||
7558 | 7566 | | |
7559 | 7567 | | |
7560 | 7568 | | |
| 7569 | + | |
| 7570 | + | |
| 7571 | + | |
| 7572 | + | |
| 7573 | + | |
| 7574 | + | |
7561 | 7575 | | |
7562 | 7576 | | |
7563 | 7577 | | |
7564 | 7578 | | |
7565 | | - | |
| 7579 | + | |
| 7580 | + | |
7566 | 7581 | | |
7567 | 7582 | | |
7568 | 7583 | | |
| |||
7595 | 7610 | | |
7596 | 7611 | | |
7597 | 7612 | | |
| 7613 | + | |
| 7614 | + | |
| 7615 | + | |
| 7616 | + | |
| 7617 | + | |
| 7618 | + | |
| 7619 | + | |
| 7620 | + | |
| 7621 | + | |
| 7622 | + | |
| 7623 | + | |
| 7624 | + | |
| 7625 | + | |
| 7626 | + | |
| 7627 | + | |
| 7628 | + | |
7598 | 7629 | | |
7599 | 7630 | | |
7600 | 7631 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1475 | 1475 | | |
1476 | 1476 | | |
1477 | 1477 | | |
| 1478 | + | |
| 1479 | + | |
| 1480 | + | |
| 1481 | + | |
| 1482 | + | |
| 1483 | + | |
| 1484 | + | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
1478 | 1504 | | |
1479 | 1505 | | |
1480 | 1506 | | |
| |||
0 commit comments