Skip to main content

Module binding

Module binding 

Source
Expand description

DROP and ALTER routine target binding and ownership validation.

Functions§

ensure_routine_drop_owner
RemoveObjects’ ownership check of a routine a DROP names: the owner of the routine’s schema may drop it, and otherwise only its owner, reported by the command’s kind and the name as written.
resolve_sql_function_drop_target
Find the routine a DROP item names; requested_types are its argument types resolved to catalog type names.
resolve_sql_function_drop_targets
Find the routines a DROP names, item by item as RemoveObjects does: each item’s routine is looked up and then passed to ensure_owner, before the next item is looked up.
resolve_sql_routine_alter_target