forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit239837a
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 parentf37ac61 commit239837a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3668 | 3668 | | |
3669 | 3669 | | |
3670 | 3670 | | |
3671 | | - | |
3672 | | - | |
| 3671 | + | |
| 3672 | + | |
3673 | 3673 | | |
3674 | 3674 | | |
3675 | 3675 | | |
| |||
0 commit comments
Comments
(0)