forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7516cdb
committed
Fix autovacuum for shared relations
The table-skipping logic in autovacuum would fail to consider thatmultiple workers could be processing the same shared catalog indifferent databases. This normally wouldn't be a problem: firstlybecause autovacuum workers not for wraparound would simply ignore tablesin which they cannot acquire lock, and secondly because most of the timethese tables are small enough that even if multiple for-wraparoundworkers are stuck in the same catalog, they would be over prettyquickly. But in cases where the catalogs are severely bloated it couldbecome a problem.Backpatch all the way back, because the problem has been there since thebeginning.Reported by Ondřej SvětlíkDiscussion:https://www.postgresql.org/message-id/572B63B1.3030603%40flexibee.euhttps://www.postgresql.org/message-id/572A1072.5080308%40flexibee.eu1 parentba37ac2 commit7516cdb
1 file changed
+10
-2
lines changedLines changed: 10 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
190 | 190 |
| |
191 | 191 |
| |
192 | 192 |
| |
| 193 | + | |
193 | 194 |
| |
194 | 195 |
| |
195 | 196 |
| |
| |||
203 | 204 |
| |
204 | 205 |
| |
205 | 206 |
| |
| 207 | + | |
206 | 208 |
| |
207 | 209 |
| |
208 | 210 |
| |
| |||
220 | 222 |
| |
221 | 223 |
| |
222 | 224 |
| |
| 225 | + | |
223 | 226 |
| |
224 | 227 |
| |
225 | 228 |
| |
| |||
717 | 720 |
| |
718 | 721 |
| |
719 | 722 |
| |
| 723 | + | |
720 | 724 |
| |
721 | 725 |
| |
722 | 726 |
| |
| |||
1683 | 1687 |
| |
1684 | 1688 |
| |
1685 | 1689 |
| |
| 1690 | + | |
1686 | 1691 |
| |
1687 | 1692 |
| |
1688 | 1693 |
| |
| |||
2229 | 2234 |
| |
2230 | 2235 |
| |
2231 | 2236 |
| |
2232 |
| - | |
2233 |
| - | |
| 2237 | + | |
| 2238 | + | |
2234 | 2239 |
| |
2235 | 2240 |
| |
2236 | 2241 |
| |
| |||
2271 | 2276 |
| |
2272 | 2277 |
| |
2273 | 2278 |
| |
| 2279 | + | |
2274 | 2280 |
| |
2275 | 2281 |
| |
2276 | 2282 |
| |
| |||
2382 | 2388 |
| |
2383 | 2389 |
| |
2384 | 2390 |
| |
| 2391 | + | |
2385 | 2392 |
| |
2386 | 2393 |
| |
2387 | 2394 |
| |
| |||
2577 | 2584 |
| |
2578 | 2585 |
| |
2579 | 2586 |
| |
| 2587 | + | |
2580 | 2588 |
| |
2581 | 2589 |
| |
2582 | 2590 |
| |
|
0 commit comments
Comments
(0)