1DROP EXTENSION(7)        PostgreSQL 11.6 Documentation       DROP EXTENSION(7)
2
3
4

NAME

6       DROP_EXTENSION - remove an extension
7

SYNOPSIS

9       DROP EXTENSION [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
10

DESCRIPTION

12       DROP EXTENSION removes extensions from the database. Dropping an
13       extension causes its component objects to be dropped as well.
14
15       You must own the extension to use DROP EXTENSION.
16

PARAMETERS

18       IF EXISTS
19           Do not throw an error if the extension does not exist. A notice is
20           issued in this case.
21
22       name
23           The name of an installed extension.
24
25       CASCADE
26           Automatically drop objects that depend on the extension, and in
27           turn all objects that depend on those objects (see Section 5.13).
28
29       RESTRICT
30           Refuse to drop the extension if any objects depend on it (other
31           than its own member objects and other extensions listed in the same
32           DROP command). This is the default.
33

EXAMPLES

35       To remove the extension hstore from the current database:
36
37           DROP EXTENSION hstore;
38
39       This command will fail if any of hstore's objects are in use in the
40       database, for example if any tables have columns of the hstore type.
41       Add the CASCADE option to forcibly remove those dependent objects as
42       well.
43

COMPATIBILITY

45       DROP EXTENSION is a PostgreSQL extension.
46

SEE ALSO

48       CREATE EXTENSION (CREATE_EXTENSION(7)), ALTER EXTENSION
49       (ALTER_EXTENSION(7))
50
51
52
53PostgreSQL 11.6                      2019                    DROP EXTENSION(7)
Impressum