]> begriffs open source - ai-pg/blob - full-docs/txt/sql-droplanguage.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-droplanguage.txt
1
2 DROP LANGUAGE
3
4    DROP LANGUAGE — remove a procedural language
5
6 Synopsis
7
8 DROP [ PROCEDURAL ] LANGUAGE [ IF EXISTS ] name [ CASCADE | RESTRICT ]
9
10 Description
11
12    DROP LANGUAGE removes the definition of a previously registered
13    procedural language. You must be a superuser or the owner of the
14    language to use DROP LANGUAGE.
15
16 Note
17
18    As of PostgreSQL 9.1, most procedural languages have been made into
19    “extensions”, and should therefore be removed with DROP EXTENSION not
20    DROP LANGUAGE.
21
22 Parameters
23
24    IF EXISTS
25           Do not throw an error if the language does not exist. A notice
26           is issued in this case.
27
28    name
29           The name of an existing procedural language.
30
31    CASCADE
32           Automatically drop objects that depend on the language (such as
33           functions in the language), and in turn all objects that depend
34           on those objects (see Section 5.15).
35
36    RESTRICT
37           Refuse to drop the language if any objects depend on it. This is
38           the default.
39
40 Examples
41
42    This command removes the procedural language plsample:
43 DROP LANGUAGE plsample;
44
45 Compatibility
46
47    There is no DROP LANGUAGE statement in the SQL standard.
48
49 See Also
50
51    ALTER LANGUAGE, CREATE LANGUAGE