2 35.43. routine_sequence_usage #
4 The view routine_sequence_usage identifies all sequences that are used
5 by a function or procedure, either in the SQL body or in parameter
6 default expressions. (This only works for unquoted SQL bodies, not
7 quoted bodies or functions in other languages.) A sequence is only
8 included if that sequence is owned by a currently enabled role.
10 Table 35.41. routine_sequence_usage Columns
16 specific_catalog sql_identifier
18 Name of the database containing the function (always the current
21 specific_schema sql_identifier
23 Name of the schema containing the function
25 specific_name sql_identifier
27 The “specific name” of the function. See Section 35.45 for more
30 routine_catalog sql_identifier
32 Name of the database containing the function (always the current
35 routine_schema sql_identifier
37 Name of the schema containing the function
39 routine_name sql_identifier
41 Name of the function (might be duplicated in case of overloading)
43 schema_catalog sql_identifier
45 Name of the database that contains the sequence that is used by the
46 function (always the current database)
48 sequence_schema sql_identifier
50 Name of the schema that contains the sequence that is used by the
53 sequence_name sql_identifier
55 Name of the sequence that is used by the function