forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5d3500d
committed
Acquire properly session-level lock on new index in REINDEX CONCURRENTLY
In the first transaction run for REINDEX CONCURRENTLY, a thinko in theexisting logic caused two session locks to be taken on the old index,causing the session lock on the newly-created index to be missed. Thismade possible concurrent DDL commands (like ALTER INDEX) on the newindex while REINDEX CONCURRENTLY was processing from the point where thefirst internal transaction committed.This issue has been discovered while digging into another bug.Author: Michael PaquierDiscussion:https://postgr.es/m/20191021074323.GB1869@paquier.xyzBackpatch-through: 121 parent508e84d commit5d3500d
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2960 | 2960 |
| |
2961 | 2961 |
| |
2962 | 2962 |
| |
2963 |
| - | |
2964 |
| - | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
2965 | 2968 |
| |
2966 | 2969 |
| |
2967 | 2970 |
| |
|
0 commit comments
Comments
(0)