- Notifications
You must be signed in to change notification settings - Fork5
Commit30f540b
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 parentb72e5fa commit30f540b
File tree
4 files changed
+73
-18
lines changed- src/backend
- access
- heap
- nbtree
- commands
4 files changed
+73
-18
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
241 | 241 |
| |
242 | 242 |
| |
243 | 243 |
| |
244 |
| - | |
245 |
| - | |
246 |
| - | |
247 |
| - | |
248 |
| - | |
249 |
| - | |
250 |
| - | |
251 | 244 |
| |
252 | 245 |
| |
253 | 246 |
| |
| |||
256 | 249 |
| |
257 | 250 |
| |
258 | 251 |
| |
259 |
| - | |
| 252 | + | |
260 | 253 |
| |
261 | 254 |
| |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
262 | 268 |
| |
263 | 269 |
| |
264 | 270 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
491 | 491 |
| |
492 | 492 |
| |
493 | 493 |
| |
| 494 | + | |
| 495 | + | |
| 496 | + | |
494 | 497 |
| |
495 |
| - | |
496 |
| - | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
497 | 502 |
| |
498 | 503 |
| |
499 | 504 |
| |
500 | 505 |
| |
501 |
| - | |
502 |
| - | |
503 |
| - | |
504 | 506 |
| |
505 | 507 |
| |
| 508 | + | |
506 | 509 |
| |
507 | 510 |
| |
508 | 511 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| |||
739 | 739 |
| |
740 | 740 |
| |
741 | 741 |
| |
| 742 | + | |
742 | 743 |
| |
743 | 744 |
| |
744 | 745 |
| |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
745 | 766 |
| |
746 | 767 |
| |
| 768 | + | |
| 769 | + | |
| 770 | + | |
747 | 771 |
| |
748 | 772 |
| |
749 | 773 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
| 34 | + | |
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| |||
280 | 280 |
| |
281 | 281 |
| |
282 | 282 |
| |
283 |
| - | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
284 | 304 |
| |
| 305 | + | |
| 306 | + | |
285 | 307 |
| |
286 | 308 |
| |
287 | 309 |
| |
|
0 commit comments
Comments
(0)