forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3457292
committed
Protect against torn pages when deleting GIN list pages.
To-be-deleted list pages contain no useful information, as they are beingdeleted, but we must still protect the writes from being torn by a crashafter a partial write. To do that, re-initialize the pages on WAL replay.Jeff Janes caught this with a test program to test partial writes.Backpatch to all supported versions.1 parentcd7df10 commit3457292
1 file changed
+13
-13
lines changedLines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
682 | 682 |
| |
683 | 683 |
| |
684 | 684 |
| |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
685 | 690 |
| |
686 | 691 |
| |
687 | 692 |
| |
688 |
| - | |
| 693 | + | |
| 694 | + | |
689 | 695 |
| |
690 |
| - | |
691 |
| - | |
692 |
| - | |
693 |
| - | |
694 |
| - | |
695 |
| - | |
696 |
| - | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
697 | 699 |
| |
698 |
| - | |
699 |
| - | |
700 |
| - | |
| 700 | + | |
| 701 | + | |
701 | 702 |
| |
702 |
| - | |
703 |
| - | |
| 703 | + | |
704 | 704 |
| |
705 | 705 |
| |
706 | 706 |
| |
|
0 commit comments
Comments
(0)