forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcd29be5
committed
pgbench: Improve error-handling in pgbench.
Previously failures of initial connection and logfile open caused pgbenchto proceed the benchmarking, report the incomplete results and exit withstatus 2. It didn't make sense to proceed the benchmarking even whenpgbench could not start as prescribed.This commit improves pgbench so that early errors that occur whenstarting benchmark such as those failures should make pgbench exitimmediately with status 1.Author: Yugo NagataReviewed-by: Fabien COELHO, Kyotaro Horiguchi, Fujii MasaoDiscussion:https://postgr.es/m/TYCPR01MB5870057375ACA8A73099C649F5349@TYCPR01MB5870.jpnprd01.prod.outlook.com1 parent3353974 commitcd29be5
2 files changed
+21
-15
lines changedLines changed: 6 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
904 | 904 |
| |
905 | 905 |
| |
906 | 906 |
| |
907 |
| - | |
908 |
| - | |
909 |
| - | |
910 |
| - | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
911 | 913 |
| |
912 | 914 |
| |
913 | 915 |
| |
|
Lines changed: 15 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3181 | 3181 |
| |
3182 | 3182 |
| |
3183 | 3183 |
| |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
3184 | 3188 |
| |
3185 | 3189 |
| |
3186 | 3190 |
| |
| |||
4456 | 4460 |
| |
4457 | 4461 |
| |
4458 | 4462 |
| |
| 4463 | + | |
| 4464 | + | |
4459 | 4465 |
| |
| 4466 | + | |
4460 | 4467 |
| |
4461 | 4468 |
| |
4462 | 4469 |
| |
| |||
6399 | 6406 |
| |
6400 | 6407 |
| |
6401 | 6408 |
| |
| 6409 | + | |
| 6410 | + | |
6402 | 6411 |
| |
| 6412 | + | |
6403 | 6413 |
| |
6404 | 6414 |
| |
6405 | 6415 |
| |
| |||
6625 | 6635 |
| |
6626 | 6636 |
| |
6627 | 6637 |
| |
6628 |
| - | |
| 6638 | + | |
6629 | 6639 |
| |
6630 | 6640 |
| |
6631 | 6641 |
| |
| |||
6650 | 6660 |
| |
6651 | 6661 |
| |
6652 | 6662 |
| |
6653 |
| - | |
6654 |
| - | |
6655 |
| - | |
6656 |
| - | |
6657 |
| - | |
6658 |
| - | |
6659 |
| - | |
6660 |
| - | |
6661 |
| - | |
6662 |
| - | |
| 6663 | + | |
| 6664 | + | |
| 6665 | + | |
| 6666 | + | |
6663 | 6667 |
| |
6664 | 6668 |
| |
6665 | 6669 |
| |
|
0 commit comments
Comments
(0)