2 35.42. routine_routine_usage #
4 The view routine_routine_usage identifies all functions or procedures
5 that are used by another (or the same) function or procedure, either in
6 the SQL body or in parameter default expressions. (This only works for
7 unquoted SQL bodies, not quoted bodies or functions in other
8 languages.) An entry is included here only if the used function is
9 owned by a currently enabled role. (There is no such restriction on the
12 Note that the entries for both functions in the view refer to the
13 “specific” name of the routine, even though the column names are used
14 in a way that is inconsistent with other information schema views about
15 routines. This is per SQL standard, although it is arguably a
16 misdesign. See Section 35.45 for more information about specific names.
18 Table 35.40. routine_routine_usage Columns
24 specific_catalog sql_identifier
26 Name of the database containing the using function (always the current
29 specific_schema sql_identifier
31 Name of the schema containing the using function
33 specific_name sql_identifier
35 The “specific name” of the using function.
37 routine_catalog sql_identifier
39 Name of the database that contains the function that is used by the
40 first function (always the current database)
42 routine_schema sql_identifier
44 Name of the schema that contains the function that is used by the first
47 routine_name sql_identifier
49 The “specific name” of the function that is used by the first function.