forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7ffe657
committed
Fix logic in lazy vacuum to decide if it's worth trying to truncate the heap.
If the table was smaller than REL_TRUNCATE_FRACTION (= 16) pages, we alwaystried to acquire AccessExclusiveLock on it even if there was no empty pagesat the end.Report by Simon Riggs. Back-patch all the way to 7.4.1 parentb25433d commit7ffe657
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
| 32 | + | |
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
186 |
| - | |
187 |
| - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
188 | 189 |
| |
189 | 190 |
| |
190 | 191 |
| |
|
0 commit comments
Comments
(0)