forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfbe9b80
committed
Fix autovacuum log output heap truncation issue.
The percentage of blocks from the table value reported by autovacuum logoutput (following commit5100010) should never exceed 100% becauseit describes the state of the table back when lazy_vacuum() was called.The value could nevertheless exceed 100% in the event of heap relationtruncation. We failed to compensate for how truncation affectsrel_pages.Fix the faulty accounting by using the original rel_pages value insteadof the current/final rel_pages value.Reported-By: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/20210423204306.5osfpkt2ggaedyvy@alap3.anarazel.de1 parentb2d0c7c commitfbe9b80
1 file changed
+4
-1
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
777 | 777 |
| |
778 | 778 |
| |
779 | 779 |
| |
| 780 | + | |
| 781 | + | |
780 | 782 |
| |
781 | 783 |
| |
782 | 784 |
| |
| |||
795 | 797 |
| |
796 | 798 |
| |
797 | 799 |
| |
| 800 | + | |
798 | 801 |
| |
799 | 802 |
| |
800 |
| - | |
| 803 | + | |
801 | 804 |
| |
802 | 805 |
| |
803 | 806 |
| |
|
0 commit comments
Comments
(0)