2 doc/src/sgml/ref/drop_access_method.sgml
3 PostgreSQL documentation
6 <refentry id=
"sql-drop-access-method">
7 <indexterm zone=
"sql-drop-access-method">
8 <primary>DROP ACCESS METHOD
</primary>
12 <refentrytitle>DROP ACCESS METHOD
</refentrytitle>
13 <manvolnum>7</manvolnum>
14 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
18 <refname>DROP ACCESS METHOD
</refname>
19 <refpurpose>remove an access method
</refpurpose>
24 DROP ACCESS METHOD [ IF EXISTS ]
<replaceable class=
"parameter">name
</replaceable> [ CASCADE | RESTRICT ]
29 <title>Description
</title>
32 <command>DROP ACCESS METHOD
</command> removes an existing access method.
33 Only superusers can drop access methods.
38 <title>Parameters
</title>
42 <term><literal>IF EXISTS
</literal></term>
45 Do not throw an error if the access method does not exist.
46 A notice is issued in this case.
52 <term><replaceable class=
"parameter">name
</replaceable></term>
55 The name of an existing access method.
61 <term><literal>CASCADE
</literal></term>
64 Automatically drop objects that depend on the access method
65 (such as operator classes, operator families, and indexes),
66 and in turn all objects that depend on those objects
67 (see
<xref linkend=
"ddl-depend"/>).
73 <term><literal>RESTRICT
</literal></term>
76 Refuse to drop the access method if any objects depend on it.
85 <title>Examples
</title>
88 Drop the access method
<literal>heptree
</literal>:
90 DROP ACCESS METHOD heptree;
91 </programlisting></para>
95 <title>Compatibility
</title>
98 <command>DROP ACCESS METHOD
</command> is a
99 <productname>PostgreSQL
</productname> extension.
104 <title>See Also
</title>
106 <simplelist type=
"inline">
107 <member><xref linkend=
"sql-create-access-method"/></member>