]> begriffs open source - ai-pg/blob - full-docs/txt/infoschema-routine-routine-usage.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / infoschema-routine-routine-usage.txt
1
2 35.42. routine_routine_usage #
3
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
10    using function.)
11
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.
17
18    Table 35.40. routine_routine_usage Columns
19
20    Column Type
21
22    Description
23
24    specific_catalog sql_identifier
25
26    Name of the database containing the using function (always the current
27    database)
28
29    specific_schema sql_identifier
30
31    Name of the schema containing the using function
32
33    specific_name sql_identifier
34
35    The “specific name” of the using function.
36
37    routine_catalog sql_identifier
38
39    Name of the database that contains the function that is used by the
40    first function (always the current database)
41
42    routine_schema sql_identifier
43
44    Name of the schema that contains the function that is used by the first
45    function
46
47    routine_name sql_identifier
48
49    The “specific name” of the function that is used by the first function.