routine_sequence_usageThe view routine_sequence_usage identifies all sequences that are used by a 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.) A sequence is only included if that sequence is owned by a currently enabled role.
Table 37.41. routine_sequence_usage Columns
| 
               Column Type Description  | 
          
|---|
| 
               
 Name of the database containing the function (always the current database)  | 
          
| 
               
 Name of the schema containing the function  | 
          
| 
               
 The “specific name” of the function. See Section 37.45 for more information.  | 
          
| 
               
 Name of the database containing the function (always the current database)  | 
          
| 
               
 Name of the schema containing the function  | 
          
| 
               
 Name of the function (might be duplicated in case of overloading)  | 
          
| 
               
 Name of the database that contains the sequence that is used by the function (always the current database)  | 
          
| 
               
 Name of the schema that contains the sequence that is used by the function  | 
          
| 
               
 Name of the sequence that is used by the function  | 
          
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.