forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0ae3b46
committed
Improve handling of dropped partitioned indexes for REINDEX INDEX
A REINDEX INDEX done on a partitioned index builds a list of the indexesto work on before processing its partitions in individual transactions.When combined with a DROP of the partitioned index, there was a windowwhere it was possible to see some unexpected "could not open relationwith OID", synonym of relation lookup error. The code was robust enoughto handle the case where the parent relation is missing, but not thecase where an index would be gone missing.This is similar to1d65416.Support for REINDEX on partitioned relations has been introduced ina6642b3, so backpatch down to 14.Author: Fei ChanghongDiscussion:https://postgr.es/m/tencent_6A52106095ACDE55333E3AD33F304C0C3909@qq.comBackpatch-through: 141 parent8013850 commit0ae3b46
1 file changed
+18
-1
lines changedLines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3634 | 3634 |
| |
3635 | 3635 |
| |
3636 | 3636 |
| |
3637 |
| - | |
| 3637 | + | |
| 3638 | + | |
| 3639 | + | |
| 3640 | + | |
| 3641 | + | |
| 3642 | + | |
| 3643 | + | |
| 3644 | + | |
| 3645 | + | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
| 3652 | + | |
| 3653 | + | |
| 3654 | + | |
3638 | 3655 |
| |
3639 | 3656 |
| |
3640 | 3657 |
| |
|
0 commit comments
Comments
(0)