forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork0
Commitbe78305
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 parent664ac3d commitbe78305
1 file changed
+13
-14
lines changedLines changed: 13 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
650 | 650 |
| |
651 | 651 |
| |
652 | 652 |
| |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
653 | 657 |
| |
654 | 658 |
| |
655 |
| - | |
| 659 | + | |
| 660 | + | |
656 | 661 |
| |
657 |
| - | |
658 |
| - | |
659 |
| - | |
660 |
| - | |
661 |
| - | |
662 |
| - | |
663 |
| - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
664 | 665 |
| |
665 |
| - | |
666 |
| - | |
667 |
| - | |
668 |
| - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
669 | 669 |
| |
670 |
| - | |
671 |
| - | |
| 670 | + | |
672 | 671 |
| |
673 | 672 |
| |
674 | 673 |
| |
|
0 commit comments
Comments
(0)