- Notifications
You must be signed in to change notification settings - Fork28
Commit053ad56
committed
Fix lock level used for partition when detaching it
For probably bogus reasons, we acquire only AccessShareLock on thepartition when we try to detach it from its parent partitioned table.This can cause ugly things to happen if another transaction is doingany sort of DDL to the partition concurrently.Upgrade that lock to ShareUpdateExclusiveLock, which per discussionseems to be the minimum needed.Reported by Robert Haas.Discussion:https://postgr.es/m/CA+TgmoYruJQ+2qnFLtF1xQtr71pdwgfxy3Ziy-TxV28M6pEmyA@mail.gmail.com1 parent4e4c0d6 commit053ad56
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14726 | 14726 |
| |
14727 | 14727 |
| |
14728 | 14728 |
| |
14729 |
| - | |
| 14729 | + | |
14730 | 14730 |
| |
14731 | 14731 |
| |
14732 | 14732 |
| |
|
0 commit comments
Comments
(0)