DROP LANGUAGE

Removes a procedural language.

Synopsis

  1. DROP [PROCEDURAL] LANGUAGE [IF EXISTS] <name> [CASCADE | RESTRICT]

Description

DROP LANGUAGE will remove the definition of the previously registered procedural language . You must have superuser privileges to drop a language.

Parameters

PROCEDURAL

(Optional, no effect) Indicates that this is a procedural language.

IF EXISTS

Do not throw an error if the language does not exist. A notice message is issued in this circumstance.

The name of an existing procedural language. The name may be enclosed by single quotes.

CASCADE

Automatically drop objects that depend on the language (for example, functions written in that language).

RESTRICT

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

Examples

Remove the procedural language plsample:

  1. DROP LANGUAGE plsample;

Compatibility

DROP LANGUAGE is a HAWQ extension; there is no DROP LANGUAGE statement in the SQL standard.

See Also

CREATE LANGUAGE