- Notifications
You must be signed in to change notification settings - Fork5k
Commitd43bd09
committed
Improve some error messages with invalid indexes for REINDEX CONCURRENTLY
An invalid index is skipped when doing REINDEX CONCURRENTLY at tablelevel, with INDEX_CORRUPTED used as errcode. This is confusing,because an invalid index could exist after an interruption. The errcodeis switched to OBJECT_NOT_IN_PREREQUISITE_STATE instead, as per asuggestion from Andres Freund.While on it, the error messages are reworded, and a hint is added,telling how to rebuild an invalid index in this case. This has beensuggested by Noah Misch.Discussion:https://postgr.es/m/20231118230958.4fm3fhk4ypshxopa@awork3.anarazel.de1 parent0bf6246 commitd43bd09
File tree
2 files changed
+10
-7
lines changed- src
- backend/commands
- test/regress/expected
2 files changed
+10
-7
lines changedLines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3526 | 3526 |
| |
3527 | 3527 |
| |
3528 | 3528 |
| |
3529 |
| - | |
3530 |
| - | |
| 3529 | + | |
| 3530 | + | |
3531 | 3531 |
| |
3532 |
| - | |
| 3532 | + | |
| 3533 | + | |
3533 | 3534 |
| |
3534 | 3535 |
| |
3535 | 3536 |
| |
| |||
3578 | 3579 |
| |
3579 | 3580 |
| |
3580 | 3581 |
| |
3581 |
| - | |
3582 |
| - | |
| 3582 | + | |
| 3583 | + | |
3583 | 3584 |
| |
3584 |
| - | |
| 3585 | + | |
| 3586 | + | |
3585 | 3587 |
| |
3586 | 3588 |
| |
3587 | 3589 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2581 | 2581 |
| |
2582 | 2582 |
| |
2583 | 2583 |
| |
2584 |
| - | |
| 2584 | + | |
| 2585 | + | |
2585 | 2586 |
| |
2586 | 2587 |
| |
2587 | 2588 |
| |
|
0 commit comments
Comments
(0)