4 DROP EXTENSION — remove an extension
8 DROP EXTENSION [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
12 DROP EXTENSION removes extensions from the database. Dropping an
13 extension causes its member objects, and other explicitly dependent
14 routines (see ALTER ROUTINE, the DEPENDS ON EXTENSION extension_name
15 action), to be dropped as well.
17 You must own the extension to use DROP EXTENSION.
22 Do not throw an error if the extension does not exist. A notice
23 is issued in this case.
26 The name of an installed extension.
29 Automatically drop objects that depend on the extension, and in
30 turn all objects that depend on those objects (see
34 This option prevents the specified extensions from being dropped
35 if other objects, besides these extensions, their members, and
36 their explicitly dependent routines, depend on them. This is the
41 To remove the extension hstore from the current database:
42 DROP EXTENSION hstore;
44 This command will fail if any of hstore's objects are in use in the
45 database, for example if any tables have columns of the hstore type.
46 Add the CASCADE option to forcibly remove those dependent objects as
51 DROP EXTENSION is a PostgreSQL extension.
55 CREATE EXTENSION, ALTER EXTENSION