forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit21c27af
committed
Remove the vacuum_delay_point call in count_nondeletable_pages, because we hold
an exclusive lock on the table at this point, which we want to release as soonas possible. This is called in the phase of lazy vacuum where we truncate theempty pages at the end of the table.An alternative solution would be to lower the vacuum delay settings beforestarting the truncating phase, but this doesn't work very well in autovacuumdue to the autobalancing code (which can cause other processes to change ourcost delay settings). This case could be considered in the balancing code, butit is simpler this way.1 parentd982daa commit21c27af
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| |||
868 | 868 |
| |
869 | 869 |
| |
870 | 870 |
| |
871 |
| - | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
872 | 876 |
| |
873 | 877 |
| |
874 | 878 |
| |
|
0 commit comments
Comments
(0)