Historical version. PostgreSQL 7.4 has reached end of support. See the current manual.
ALTER FUNCTION
Description
ALTER FUNCTION changes the definition of a function. The only functionality is to rename the function.
Parameters
- name
The name (optionally schema-qualified) of an existing function.
- type
The data type of an argument of the function.
- newname
The new name of the function.
Examples
To rename the function sqrt for type integer to square_root:
ALTER FUNCTION sqrt(integer) RENAME TO square_root;
Report a documentation issue
Read the upstream documentation. For corrections, first check the current manual.