table of contents
DROP FUNCTION(7) | PostgreSQL 9.6.6 Documentation | DROP FUNCTION(7) |
NAME¶
DROP_FUNCTION - remove a function
SYNOPSIS¶
DROP FUNCTION [ IF EXISTS ] name ( [ [ argmode ] [ argname ] argtype [, ...] ] )
[ CASCADE | RESTRICT ]
DESCRIPTION¶
DROP FUNCTION removes the definition of an existing function. To execute this command the user must be the owner of the function. The argument types to the function must be specified, since several different functions can exist with the same name and different argument lists.
PARAMETERS¶
IF EXISTS
name
argmode
argname
argtype
CASCADE
RESTRICT
EXAMPLES¶
This command removes the square root function:
DROP FUNCTION sqrt(integer);
COMPATIBILITY¶
A DROP FUNCTION statement is defined in the SQL standard, but it is not compatible with this command.
SEE ALSO¶
CREATE FUNCTION (CREATE_FUNCTION(7)), ALTER FUNCTION (ALTER_FUNCTION(7))
2017 | PostgreSQL 9.6.6 |