RefLib

Reference library for AI

Back

postgresql_16:7.1.122.2 Parameters

PostgreSQL 16 > Reference > SQL Commands > DROP PROCEDURE > Parameters

IF EXISTS

Do not throw an error if the procedure does not exist. A notice is issued in this case.

*name*

The name (optionally schema-qualified) of an existing procedure.

*argmode*

The mode of an argument: IN, OUT, INOUT, or VARIADIC. If omitted, the default is IN (but see below).

*argname*

The name of an argument. Note that DROP PROCEDURE does not actually pay any attention to argument names, since only the argument data types are used to determine the procedure's identity.

*argtype*

The data type(s) of the procedure's arguments (optionally schema-qualified), if any. See below for details.

CASCADE

Automatically drop objects that depend on the procedure, and in turn all objects that depend on those objects (see (see postgresql_16:3.2.14)).

RESTRICT

Refuse to drop the procedure if any objects depend on it. This is the default.

Back