- Notifications
You must be signed in to change notification settings - Fork5
Commit1a3de15
committed
Dept. of further reflection: I looked around to see if any other callers
of XLogInsert had the same sort of checkpoint interlock problem asRecordTransactionCommit, and indeed I found some. Btree index buildand ALTER TABLE SET TABLESPACE write data outside the friendly confinesof the buffer manager, and therefore they have to take their ownresponsibility for checkpoint interlock. The easiest solution seems tobe to force smgrimmedsync at the end of the index build or table copy,even when the operation is being WAL-logged. This is sufficient sincethe new index or table will be of interest to no one if we don't getas far as committing the current transaction.1 parent057ea34 commit1a3de15
File tree
3 files changed
+46
-24
lines changed- src/backend
- access/nbtree
- commands
- storage/smgr
3 files changed
+46
-24
lines changedLines changed: 20 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
| |||
322 | 322 |
| |
323 | 323 |
| |
324 | 324 |
| |
325 |
| - | |
| 325 | + | |
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
329 |
| - | |
330 |
| - | |
331 |
| - | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
332 | 332 |
| |
333 |
| - | |
334 |
| - | |
| 333 | + | |
335 | 334 |
| |
336 | 335 |
| |
337 | 336 |
| |
| |||
802 | 801 |
| |
803 | 802 |
| |
804 | 803 |
| |
805 |
| - | |
806 |
| - | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
| 816 | + | |
807 | 817 |
| |
808 |
| - | |
| 818 | + | |
809 | 819 |
| |
810 | 820 |
|
Lines changed: 19 additions & 8 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 |
| |
| |||
5479 | 5479 |
| |
5480 | 5480 |
| |
5481 | 5481 |
| |
5482 |
| - | |
5483 |
| - | |
5484 |
| - | |
| 5482 | + | |
| 5483 | + | |
| 5484 | + | |
5485 | 5485 |
| |
5486 |
| - | |
| 5486 | + | |
5487 | 5487 |
| |
5488 | 5488 |
| |
5489 | 5489 |
| |
5490 |
| - | |
5491 |
| - | |
| 5490 | + | |
| 5491 | + | |
| 5492 | + | |
| 5493 | + | |
| 5494 | + | |
| 5495 | + | |
| 5496 | + | |
| 5497 | + | |
| 5498 | + | |
| 5499 | + | |
| 5500 | + | |
| 5501 | + | |
| 5502 | + | |
5492 | 5503 |
| |
5493 |
| - | |
| 5504 | + | |
5494 | 5505 |
| |
5495 | 5506 |
| |
5496 | 5507 |
| |
|
Lines changed: 7 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
621 | 621 |
| |
622 | 622 |
| |
623 | 623 |
| |
624 |
| - | |
625 |
| - | |
626 |
| - | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
627 | 627 |
| |
628 | 628 |
| |
629 | 629 |
| |
630 |
| - | |
631 |
| - | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
632 | 633 |
| |
633 | 634 |
| |
634 | 635 |
| |
|
0 commit comments
Comments
(0)