forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitedb0f6e
committed
Fix waits of REINDEX CONCURRENTLY for indexes with predicates or expressions
As introduced byf9900df, a REINDEX CONCURRENTLY job done for anindex with predicates or expressions would set PROC_IN_SAFE_IC in itsMyProc->statusFlags, causing it to be ignored by other concurrentoperations.Such concurrent index rebuilds should never be ignored, as a predicateor an expression could call a user-defined function that accesses adifferent table than the table where the index is rebuilt.A test that uses injection points is added, backpatched down to 17.Michail has proposed a different test, but I have added somethingsimpler with more coverage.Oversight inf9900df.Author: Michail NikolaevDiscussion:https://postgr.es/m/CANtu0oj9A3kZVduFTG0vrmGnKB+DCHgEpzOp0qAyOgmks84j0w@mail.gmail.comBackpatch-through: 141 parentdd20f95 commitedb0f6e
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3739 | 3739 |
| |
3740 | 3740 |
| |
3741 | 3741 |
| |
3742 |
| - | |
3743 |
| - | |
| 3742 | + | |
| 3743 | + | |
3744 | 3744 |
| |
3745 | 3745 |
| |
3746 | 3746 |
| |
|
0 commit comments
Comments
(0)