Commit d43bd09
committed
Improve some error messages with invalid indexes for REINDEX CONCURRENTLY
An invalid index is skipped when doing REINDEX CONCURRENTLY at table
level, with INDEX_CORRUPTED used as errcode. This is confusing,
because an invalid index could exist after an interruption. The errcode
is switched to OBJECT_NOT_IN_PREREQUISITE_STATE instead, as per a
suggestion 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 been
suggested by Noah Misch.
Discussion: https://postgr.es/m/20231118230958.4fm3fhk4ypshxopa@awork3.anarazel.de1 parent 0bf6246 commit d43bd09
File tree
2 files changed
+10
-7
lines changed- src
- backend/commands
- test/regress/expected
2 files changed
+10
-7
lines changed| 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 | | |
| |||
| 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