forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7b14bcc
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 parent42bdf85 commit7b14bcc
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14588 | 14588 |
| |
14589 | 14589 |
| |
14590 | 14590 |
| |
14591 |
| - | |
| 14591 | + | |
14592 | 14592 |
| |
14593 | 14593 |
| |
14594 | 14594 |
| |
|
0 commit comments
Comments
(0)