summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-11-28 19:12:17 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2011-11-28 19:12:41 -0500
commitec3e183ec51bb2d4032be6d5402ddc7b4c8acb71 (patch)
tree45d6f75b7e3d736ddeb463b49bfde5acda3f3b31 /src/tutorial/funcs.source
parent8ab9df0db196b6e1afa75838394eb27e9955e80e (diff)
Disallow deletion of CurrentExtensionObject while running extension script.
While the deletion in itself wouldn't break things, any further creation of objects in the script would result in dangling pg_depend entries being added by recordDependencyOnCurrentExtension(). An example from Phil Sorber convinced me that this is just barely likely enough to be worth expending a couple lines of code to defend against. The resulting error message might be confusing, but it's better than leaving corrupted catalog contents for the user to deal with.
Diffstat (limited to 'src/tutorial/funcs.source')
0 files changed, 0 insertions, 0 deletions