forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8b4efe1
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 parent77e6628 commit8b4efe1
1 file changed
+14
-14
lines changedLines changed: 14 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
698 | 698 |
| |
699 | 699 |
| |
700 | 700 |
| |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
701 | 706 |
| |
702 | 707 |
| |
703 | 708 |
| |
704 |
| - | |
| 709 | + | |
| 710 | + | |
705 | 711 |
| |
706 |
| - | |
707 |
| - | |
708 |
| - | |
709 |
| - | |
710 |
| - | |
711 |
| - | |
712 |
| - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
713 | 715 |
| |
714 |
| - | |
715 |
| - | |
716 |
| - | |
717 |
| - | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
718 | 719 |
| |
719 |
| - | |
720 |
| - | |
| 720 | + | |
721 | 721 |
| |
722 | 722 |
| |
723 | 723 |
| |
|
0 commit comments
Comments
(0)