forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit626731d
committed
Lock the extension during ALTER EXTENSION ADD/DROP.
Although we were careful to lock the object being added or dropped,we failed to get any sort of lock on the extension itself. Thisallowed the ALTER to proceed in parallel with a DROP EXTENSION,which is problematic for a couple of reasons. If both commandssucceeded we'd be left with a dangling link in pg_depend, whichwould cause problems later. Also, if the ALTER failed for somereason, it might try to print the extension's name, and that couldresult in a crash or (in older branches) a silly error messagecomplaining about extension "(null)".Per bug #17098 from Alexander Lakhin. Back-patch to allsupported branches.Discussion:https://postgr.es/m/17098-b960f3616c861f83@postgresql.org1 parent0e39a60 commit626731d
1 file changed
+11
-3
lines changedLines changed: 11 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3302 | 3302 |
| |
3303 | 3303 |
| |
3304 | 3304 |
| |
3305 |
| - | |
3306 |
| - | |
3307 |
| - | |
| 3305 | + | |
| 3306 | + | |
| 3307 | + | |
| 3308 | + | |
| 3309 | + | |
| 3310 | + | |
| 3311 | + | |
| 3312 | + | |
| 3313 | + | |
| 3314 | + | |
| 3315 | + | |
3308 | 3316 |
| |
3309 | 3317 |
| |
3310 | 3318 |
| |
|
0 commit comments
Comments
(0)