forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4dc528b
committed
pgbench: Fix bug in measurement of disconnection delays.
When -C/--connect option is specified, pgbench establishes and closesthe connection for each transaction. In this case pgbench needs tomeasure the times taken for all those connections and disconnections,to include the average connection time in the benchmark result.But previously pgbench could not measure those disconnection delays.To fix the bug, this commit makes pgbench measure the disconnectiondelays whenever the connection is closed at the end of transaction,if -C/--connect option is specified.Back-patch to v14. Per discussion, we concluded not to back-patch to v13or before because changing that behavior in stable branches wouldsurprise users rather than providing benefits.Author: Yugo NagataReviewed-by: Fabien COELHO, Tatsuo Ishii, Asif Rehman, Fujii MasaoDiscussion:https://postgr.es/m/20210614151155.a393bc7d8fed183e38c9f52a@sraoss.co.jp1 parent8d0138e commit4dc528b
1 file changed
+23
-4
lines changedLines changed: 23 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3553 | 3553 |
| |
3554 | 3554 |
| |
3555 | 3555 |
| |
| 3556 | + | |
| 3557 | + | |
| 3558 | + | |
3556 | 3559 |
| |
3557 |
| - | |
| 3560 | + | |
| 3561 | + | |
3558 | 3562 |
| |
3559 | 3563 |
| |
3560 | 3564 |
| |
| |||
3578 | 3582 |
| |
3579 | 3583 |
| |
3580 | 3584 |
| |
| 3585 | + | |
| 3586 | + | |
| 3587 | + | |
| 3588 | + | |
| 3589 | + | |
| 3590 | + | |
| 3591 | + | |
| 3592 | + | |
| 3593 | + | |
| 3594 | + | |
| 3595 | + | |
| 3596 | + | |
| 3597 | + | |
3581 | 3598 |
| |
3582 | 3599 |
| |
3583 | 3600 |
| |
| |||
6538 | 6555 |
| |
6539 | 6556 |
| |
6540 | 6557 |
| |
6541 |
| - | |
| 6558 | + | |
| 6559 | + | |
| 6560 | + | |
| 6561 | + | |
| 6562 | + | |
6542 | 6563 |
| |
6543 | 6564 |
| |
6544 | 6565 |
| |
| |||
6827 | 6848 |
| |
6828 | 6849 |
| |
6829 | 6850 |
| |
6830 |
| - | |
6831 | 6851 |
| |
6832 |
| - | |
6833 | 6852 |
| |
6834 | 6853 |
| |
6835 | 6854 |
| |
|
0 commit comments
Comments
(0)