forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfbcf087
committed
Fix more issues with dependency handling at swap phase of REINDEX CONCURRENTLY
When canceling a REINDEX CONCURRENTLY operation after swapping is done,a drop of the parent table would leave behind old indexes. This is aconsequence of68ac9cf, which fixed the case of pg_depend bloat whenrepeating REINDEX CONCURRENTLY on the same relation.In order to take care of the problem without breaking the previous fix,this uses a different strategy, possible even with the exiting set ofroutines to handle dependency changes. The dependencies of/on thenew index are additionally switched to the old one, allowing an oldinvalid index remaining around because of a cancellation or a failure touse the dependency links of the concurrently-created index. Thisensures that dropping any objects the old invalid index depends on alsodrops the old index automatically.Reported-by: Julien RouhaudAuthor: Michael PaquierReviewed-by: Julien RouhaudDiscussion:https://postgr.es/m/20200227080735.l32fqcauy73lon7o@nolBackpatch-through: 121 parentc954d49 commitfbcf087
1 file changed
+6
-5
lines changedLines changed: 6 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1675 | 1675 |
| |
1676 | 1676 |
| |
1677 | 1677 |
| |
1678 |
| - | |
1679 |
| - | |
1680 |
| - | |
1681 |
| - | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
1682 | 1681 |
| |
1683 |
| - | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
1684 | 1685 |
| |
1685 | 1686 |
| |
1686 | 1687 |
| |
|
0 commit comments
Comments
(0)