forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit123b0d1
committed
Diagnose !indisvalid in more SQL functions.
pgstatindex failed with ERRCODE_DATA_CORRUPTED, of the "can't-happen"class XX. The other functions succeeded on an empty index; they mighthave malfunctioned if the failed index build left torn I/O or othercomplex state. Report an ERROR in statistics functions pgstatindex,pgstatginindex, pgstathashindex, and pgstattuple. Report DEBUG1 andskip all index I/O in maintenance functions brin_desummarize_range,brin_summarize_new_values, brin_summarize_range, andgin_clean_pending_list. Back-patch to v11 (all supported versions).Discussion:https://postgr.es/m/20231001195309.a3@google.com1 parentf31ccb5 commit123b0d1
File tree
4 files changed
+74
-9
lines changed- contrib/pgstattuple
- src/backend/access
- brin
- gin
4 files changed
+74
-9
lines changedLines changed: 26 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
237 | 237 |
| |
238 | 238 |
| |
239 | 239 |
| |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
240 | 252 |
| |
241 | 253 |
| |
242 | 254 |
| |
| |||
538 | 550 |
| |
539 | 551 |
| |
540 | 552 |
| |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
541 | 560 |
| |
542 | 561 |
| |
543 | 562 |
| |
| |||
615 | 634 |
| |
616 | 635 |
| |
617 | 636 |
| |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
618 | 644 |
| |
619 | 645 |
| |
620 | 646 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
260 | 260 |
| |
261 | 261 |
| |
262 | 262 |
| |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
263 | 270 |
| |
264 | 271 |
| |
265 | 272 |
| |
|
Lines changed: 21 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1031 | 1031 |
| |
1032 | 1032 |
| |
1033 | 1033 |
| |
1034 |
| - | |
1035 |
| - | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
1036 | 1042 |
| |
1037 | 1043 |
| |
1038 | 1044 |
| |
| |||
1117 | 1123 |
| |
1118 | 1124 |
| |
1119 | 1125 |
| |
1120 |
| - | |
1121 |
| - | |
| 1126 | + | |
| 1127 | + | |
1122 | 1128 |
| |
1123 |
| - | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
1124 | 1135 |
| |
1125 |
| - | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
1126 | 1141 |
| |
1127 | 1142 |
| |
1128 | 1143 |
| |
|
Lines changed: 20 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1035 | 1035 |
| |
1036 | 1036 |
| |
1037 | 1037 |
| |
1038 |
| - | |
1039 | 1038 |
| |
1040 | 1039 |
| |
1041 | 1040 |
| |
| |||
1067 | 1066 |
| |
1068 | 1067 |
| |
1069 | 1068 |
| |
1070 |
| - | |
1071 |
| - | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1072 | 1089 |
| |
1073 | 1090 |
| |
1074 | 1091 |
| |
|
0 commit comments
Comments
(0)