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