DROP ROUTINE
removes the definition of one or more existing routines.
Description
DROP ROUTINE
removes the definition of one or more existing routines. The term“routine”includes aggregate functions, normal functions, and procedures.See under DROP AGGREGATE
,DROP FUNCTION
, and DROP PROCEDURE
for the description of the parameters, more examples, and further details.
Synopsis
DROP ROUTINE [ IF EXISTS ] name [ ( [ [ argmode ] [ argname ] argtype [, ...] ] ) ] [, ...]
[ CASCADE | RESTRICT ]
Examples
To drop the routine foo
for type integer
:
DROP ROUTINE foo(integer);
This command will work independent of whether foo
is an aggregate, function, or procedure.