35.42. routine_routine_usage
routine_routine_usage
The view routine_routine_usage identifies all functions or procedures that are used by another (or the same) function or procedure, either in the SQL body or in parameter default expressions. (This only works for unquoted SQL bodies, not quoted bodies or functions in other languages.) An entry is included here only if the used function is owned by a currently enabled role. (There is no such restriction on the using function.)
Note that the entries for both functions in the view refer to the "specific" name of the routine, even though the column names are used in a way that is inconsistent with other information schema views about routines. This is per SQL standard, although it is arguably a misdesign. See routines for more information about specific names.
Column Type Description |
|---|
specific_catalog Name of the database containing the using function (always the current database) |
specific_schema Name of the schema containing the using function |
specific_name The "specific name" of the using function. |
routine_catalog Name of the database that contains the function that is used by the first function (always the current database) |
routine_schema Name of the schema that contains the function that is used by the first function |
routine_name The "specific name" of the function that is used by the first function. |
: routine_routine_usage Columns