User function definition
get_function_definitionReads the CREATE FUNCTION text for one user-defined SQL function, so you can review its definition found via list_functions. Returns null when the login lacks read permission.
Instructions
Returns the CREATE FUNCTION text of one user-defined function. Use it to read or review a function found with list_functions; this server never executes functions. A function the login can see but not read comes back with definition null and definition_visible false.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema | No | Function schema. Empty searches every schema. Example: 'Feeder' | |
| database | Yes | Name of the database as registered in the configuration. | |
| function | Yes | Function name, bare, with no schema prefix. |