forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbb42bfb
committed
Assert redirect pointers are sensible after heap_page_prune().
Corruption of redirect item pointers often only becomes visible well afterbeing corrupted, as e.g. bug #17255 shows: In the original reproducer,gigabyte of WAL were between the source of the corruption and the corruptionbecoming visible.To make it easier to find / prevent such bugs, verify whether redirectpointers are sensible at the end of heap_page_prune_execute().5cd7eb1introduced related assertions while modifying the page, but they can't easilydetect marking the target of an existing redirect as unused. Sometimes thecorruption will be detected later, but that's harder to diagnose.Author: Andres Freund <andres@andres@anarazel.de>Reviewed-By: Peter Geoghegan <pg@bowt.ie>Discussion:https://postgr.es/m/20211122175914.ayk6gg6nvdwuhrzb@alap3.anarazel.de1 parent18b87b2 commitbb42bfb
1 file changed
+57
-0
lines changedLines changed: 57 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
| 91 | + | |
91 | 92 |
| |
92 | 93 |
| |
93 | 94 |
| |
| |||
959 | 960 |
| |
960 | 961 |
| |
961 | 962 |
| |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
962 | 967 |
| |
963 | 968 |
| |
964 | 969 |
| |
| |||
1028 | 1033 |
| |
1029 | 1034 |
| |
1030 | 1035 |
| |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
1031 | 1088 |
| |
1032 | 1089 |
| |
1033 | 1090 |
| |
|
0 commit comments
Comments
(0)