PostgreSQL 8.0.1 Documentation | ||||
---|---|---|---|---|
Prev | Fast Backward | Fast Forward | Next |
ALTER FUNCTION
Synopsis
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.
- newowner
The new owner of the function. To change the owner of a function, you must be a superuser. Note that if the function is marked SECURITY DEFINER, it will subsequently execute as the new owner.
Examples
To rename the function sqrt for type integer to square_root:
To change the owner of the function sqrt for type integer to joe: