DROP ROUTINE — remove a routine
DROP ROUTINE [ IF EXISTS ]
name[ ( [ [
argtype[, ...] ] ) ] [, ...] [ CASCADE | RESTRICT ]
DROP ROUTINE removes the
definition of an existing routine, which can be an aggregate
function, a normal function, or a procedure. See under
AGGREGATE, DROP FUNCTION, and DROP
PROCEDURE for the description of the parameters,
more examples, and further details.
To drop the routine
DROP ROUTINE foo(integer);
This command will work independent of whether
foo is an aggregate, function, or
This command conforms to the SQL standard, with these PostgreSQL extensions:
The standard only allows one routine to be dropped per command.
IF EXISTS option
The ability to specify argument modes and names
Aggregate functions are an extension.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.