forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4f7bb4b
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 parent02c9a93 commit4f7bb4b
1 file changed
+13
-13
lines changedLines changed: 13 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
884 | 884 |
| |
885 | 885 |
| |
886 | 886 |
| |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
887 | 892 |
| |
888 | 893 |
| |
889 | 894 |
| |
890 |
| - | |
| 895 | + | |
| 896 | + | |
891 | 897 |
| |
892 |
| - | |
893 |
| - | |
894 |
| - | |
895 |
| - | |
896 |
| - | |
897 |
| - | |
898 |
| - | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
899 | 901 |
| |
900 |
| - | |
901 |
| - | |
902 |
| - | |
| 902 | + | |
| 903 | + | |
903 | 904 |
| |
904 |
| - | |
905 |
| - | |
| 905 | + | |
906 | 906 |
| |
907 | 907 |
| |
908 | 908 |
| |
|
0 commit comments
Comments
(0)