- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitcb0ddb6
committed
Repair very-low-probability race condition between relation extension
and VACUUM: in the interval between adding a new page to the relationand formatting it, it was possible for VACUUM to come along and decideit should format the page too. Though not harmful in itself, this wouldcause data loss if a third transaction were able to insert tuples intothe vacuumed page before the original extender got control back.1 parent2e64824 commitcb0ddb6
2 files changed
+39
-11
lines changedLines changed: 15 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
245 | 245 |
| |
246 | 246 |
| |
247 | 247 |
| |
248 |
| - | |
249 |
| - | |
250 |
| - | |
251 |
| - | |
252 |
| - | |
253 |
| - | |
254 |
| - | |
255 | 248 |
| |
256 | 249 |
| |
257 | 250 |
| |
| |||
260 | 253 |
| |
261 | 254 |
| |
262 | 255 |
| |
263 |
| - | |
| 256 | + | |
264 | 257 |
| |
265 | 258 |
| |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
266 | 272 |
| |
267 | 273 |
| |
268 | 274 |
| |
|
Lines changed: 24 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| |||
259 | 259 |
| |
260 | 260 |
| |
261 | 261 |
| |
262 |
| - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
263 | 283 |
| |
| 284 | + | |
| 285 | + | |
264 | 286 |
| |
265 | 287 |
| |
266 | 288 |
| |
|
0 commit comments
Comments
(0)