Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
DROP PROCEDURE
Prev UpSQL CommandsHome Next

DROP PROCEDURE

DROP PROCEDURE — remove a procedure

Synopsis

DROP PROCEDURE [ IF EXISTS ]name [ ( [ [argmode ] [argname ]argtype [, ...] ] ) ] [, ...]    [ CASCADE | RESTRICT ]

Description

DROP PROCEDURE removes the definition of an existing procedure. To execute this command the user must be the owner of the procedure. The argument types to the procedure must be specified, since several different procedures can exist with the same name and different argument lists.

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. If no argument list is specified, the name must be unique in its schema.

argmode

The mode of an argument:IN orVARIADIC. If omitted, the default isIN.

argname

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

argtype

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

CASCADE

Automatically drop objects that depend on the procedure, and in turn all objects that depend on those objects (seeSection 5.14).

RESTRICT

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

Examples

DROP PROCEDURE do_db_maintenance();

Compatibility

This command conforms to the SQL standard, with thesePostgreSQL extensions:

  • The standard only allows one procedure to be dropped per command.

  • TheIF EXISTS option

  • The ability to specify argument modes and names


Prev Up Next
DROP POLICY Home DROP PUBLICATION
pdfepub
Go to PostgreSQL 13
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp