Use the SHOW FUNCTION command to display information about one or more functions (built-in and UDFs). The command checks your user account privileges to ensure that you are permitted to see information about the UDFs defined in the database and schema.
SHOW FUNCTION [ALL | ident] [VERBOSE]
| Input | Description |
|---|---|
| ALL | Show information about all the functions that are defined in the database. This is the default. |
| ident | Show information about one or more functions that are defined in the database that begin with ident. You can specify a partial name, but the command returns an error if you specify a full signature. |
| VERBOSE | Display detailed information about the functions. |
| Output | Description |
|---|---|
| error found "(" (at char num) syntax error, unexpected '(', expecting $end | The message that the system returns if you specify a full signature,
for example:
|
The SHOW FUNCTION command is identical in behavior to the nzsql \df and \df+ commands.
Any user can run the command SHOW FUNCTION; however, you must be the admin user, own the UDF, or have object privileges on UDFs (such as Execute, List, Alter, or Drop) to see information about UDFs in the output.
Use the SHOW FUNCTION command to display information about the functions in a database.
MYDB.SCHEMA(MYUSER)=> SHOW FUNCTION;
List of functions
RESULT | FUNCTION | BUILTIN | ARGUMENTS
-----------------+--------------+---------+-------------------
BIGINT | ABS | t | (BIGINT)
DOUBLE PRECISION | ABS | t | (DOUBLE PRECISION)
INTEGER | ABS | t | (INTEGER)
DOUBLE PRECISION | COS | t | (DOUBLE PRECISION)
DOUBLE PRECISION | COT | t | (DOUBLE PRECISION)
INTEGER | CUSTOMERNAME | f | (CHARACTER VARYING (64000))
DEV.SCHEMA(MYUSER)=> SHOW FUNCTION customername VERBOSE;
RESULT | FUNCTION | BUILTIN | ARGUMENTS | NULLONNULLINPUT |
DETERMINISTIC | LOGMASK | MEMORY | OWNER | VARARGS | FENCED | VERSION | LASTCALL |
DESCRIPTION | DEPENDENCIES | LOCATION | ENV
---------+------------------+---------+----------------------------+-----------------+
---------------+---------+--------+-------+---------+--------+---------+----------+
-------------+--------------+----------+-----
INTEGER | CUSTOMERNAME | f | (CHARACTER VARYING(64000)) | t |
t |NONE | 0 | ADMIN | f | t | 1 | |
| | |
(1 row)