1DROP EXTENSION(7)       PostgreSQL 9.2.24 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.
27
28       RESTRICT
29           Refuse to drop the extension if any objects depend on it (other
30           than its own member objects and other extensions listed in the same
31           DROP command). This is the default.
32

EXAMPLES

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

COMPATIBILITY

44       DROP EXTENSION is a PostgreSQL extension.
45

SEE ALSO

47       CREATE EXTENSION (CREATE_EXTENSION(7)), ALTER EXTENSION
48       (ALTER_EXTENSION(7))
49
50
51
52PostgreSQL 9.2.24                 2017-11-06                 DROP EXTENSION(7)
Impressum