DROP FUNCTION
DROP FUNCTION
Synopsis
DROP FUNCTION name ( [ type [, ...] ] ) [ CASCADE | RESTRICT ]
Inputs
- name
The name (optionally schema-qualified) of an existing function.
- type
The type of a parameter of the function.
- CASCADE
Automatically drop objects that depend on the function (such as operators or triggers).
- RESTRICT
Refuse to drop the function if there are any dependent objects. This is the default.
Description
DROP FUNCTION will remove the definition of an existing function. To execute this command the user must be the owner of the function. The input argument types to the function must be specified, since several different functions may exist with the same name and different argument lists.
Compatibility
A DROP FUNCTION statement is defined in SQL99. One of its syntax forms is similar to PostgreSQL's.