- Notifications
You must be signed in to change notification settings - Fork5
Commit871dd02
committed
Disallow deletion of CurrentExtensionObject while running extension script.
While the deletion in itself wouldn't break things, any further creationof objects in the script would result in dangling pg_depend entries beingadded by recordDependencyOnCurrentExtension(). An example from PhilSorber convinced me that this is just barely likely enough to be worthexpending a couple lines of code to defend against. The resulting errormessage might be confusing, but it's better than leaving corrupted catalogcontents for the user to deal with.1 parent269755e commit871dd02
1 file changed
+17
-0
lines changedLines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1577 | 1577 |
| |
1578 | 1578 |
| |
1579 | 1579 |
| |
| 1580 | + | |
| 1581 | + | |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
| 1587 | + | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
1580 | 1597 |
| |
1581 | 1598 |
| |
1582 | 1599 |
| |
|
0 commit comments
Comments
(0)