forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5614a0f
committed
Fix pgbench timestamp bugs.
Commit547f04e changed pgbench to use microsecond accounting, butintroduced a couple of logging and aggregation bugs:1. We print Unix epoch timestamps so that you can correlate them withother logs, but these were inadvertently changed to use asystem-dependent reference epoch. Compute Unix timestamps, and beginaggregation intervals on the boundaries of whole Unix epoch seconds, asbefore.2. The user-supplied aggregation interval needed to be scaled.Back-patch to 14.Author: Fabien COELHO <coelho@cri.ensmp.fr>Author: Yugo NAGATA <nagata@sraoss.co.jp>Author: Kyotaro Horiguchi <horikyota.ntt@gmail.com>Reported-by: YoungHwan Joo <rulyox@gmail.com>Reported-by: Gregory Smith <gregsmithpgsql@gmail.com>Discussion:https://postgr.es/m/CAF7igB1r6wRfSCEAB-iZBKxkowWY6%2BdFF2jObSdd9%2BiVK%2BvHJg%40mail.gmail.comDiscussion:https://postgr.es/m/CAHLJuCW_8Vpcr0%3Dt6O_gozrg3wXXWXZXDioYJd3NhvKriqgpfQ%40mail.gmail.com1 parent10a0797 commit5614a0f
1 file changed
+34
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
346 | 352 | | |
347 | 353 | | |
348 | 354 | | |
| |||
3772 | 3778 | | |
3773 | 3779 | | |
3774 | 3780 | | |
3775 | | - | |
3776 | | - | |
3777 | | - | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
3778 | 3785 | | |
3779 | 3786 | | |
3780 | 3787 | | |
3781 | 3788 | | |
3782 | 3789 | | |
3783 | 3790 | | |
3784 | | - | |
| 3791 | + | |
3785 | 3792 | | |
3786 | 3793 | | |
3787 | 3794 | | |
| |||
3796 | 3803 | | |
3797 | 3804 | | |
3798 | 3805 | | |
| 3806 | + | |
| 3807 | + | |
3799 | 3808 | | |
3800 | 3809 | | |
3801 | 3810 | | |
3802 | 3811 | | |
3803 | 3812 | | |
3804 | 3813 | | |
3805 | | - | |
| 3814 | + | |
3806 | 3815 | | |
3807 | 3816 | | |
3808 | 3817 | | |
3809 | | - | |
| 3818 | + | |
3810 | 3819 | | |
3811 | 3820 | | |
3812 | 3821 | | |
| |||
3825 | 3834 | | |
3826 | 3835 | | |
3827 | 3836 | | |
3828 | | - | |
| 3837 | + | |
3829 | 3838 | | |
3830 | 3839 | | |
3831 | 3840 | | |
| |||
5458 | 5467 | | |
5459 | 5468 | | |
5460 | 5469 | | |
5461 | | - | |
| 5470 | + | |
| 5471 | + | |
5462 | 5472 | | |
5463 | 5473 | | |
5464 | 5474 | | |
| |||
5808 | 5818 | | |
5809 | 5819 | | |
5810 | 5820 | | |
| 5821 | + | |
| 5822 | + | |
| 5823 | + | |
| 5824 | + | |
| 5825 | + | |
| 5826 | + | |
| 5827 | + | |
| 5828 | + | |
5811 | 5829 | | |
5812 | 5830 | | |
5813 | 5831 | | |
| |||
6637 | 6655 | | |
6638 | 6656 | | |
6639 | 6657 | | |
6640 | | - | |
| 6658 | + | |
| 6659 | + | |
| 6660 | + | |
| 6661 | + | |
| 6662 | + | |
| 6663 | + | |
| 6664 | + | |
| 6665 | + | |
6641 | 6666 | | |
6642 | 6667 | | |
6643 | 6668 | | |
| |||
0 commit comments
Comments
(0)