forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitec3e183
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 parent8ab9df0 commitec3e183
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1642 | 1642 | | |
1643 | 1643 | | |
1644 | 1644 | | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
| 1660 | + | |
| 1661 | + | |
1645 | 1662 | | |
1646 | 1663 | | |
1647 | 1664 | | |
| |||
0 commit comments
Comments
(0)