doc: ALTER DEFAULT PRIVILEGES does not affect inherited roles
[pgsql.git] / doc / src / sgml / ref / drop_access_method.sgml
bloba908a64b74c065a55360e4131d08f0849c6e4afa
1 <!--
2 doc/src/sgml/ref/drop_access_method.sgml
3 PostgreSQL documentation
4 -->
6 <refentry id="sql-drop-access-method">
7 <indexterm zone="sql-drop-access-method">
8 <primary>DROP ACCESS METHOD</primary>
9 </indexterm>
11 <refmeta>
12 <refentrytitle>DROP ACCESS METHOD</refentrytitle>
13 <manvolnum>7</manvolnum>
14 <refmiscinfo>SQL - Language Statements</refmiscinfo>
15 </refmeta>
17 <refnamediv>
18 <refname>DROP ACCESS METHOD</refname>
19 <refpurpose>remove an access method</refpurpose>
20 </refnamediv>
22 <refsynopsisdiv>
23 <synopsis>
24 DROP ACCESS METHOD [ IF EXISTS ] <replaceable class="parameter">name</replaceable> [ CASCADE | RESTRICT ]
25 </synopsis>
26 </refsynopsisdiv>
28 <refsect1>
29 <title>Description</title>
31 <para>
32 <command>DROP ACCESS METHOD</command> removes an existing access method.
33 Only superusers can drop access methods.
34 </para>
35 </refsect1>
37 <refsect1>
38 <title>Parameters</title>
40 <variablelist>
41 <varlistentry>
42 <term><literal>IF EXISTS</literal></term>
43 <listitem>
44 <para>
45 Do not throw an error if the access method does not exist.
46 A notice is issued in this case.
47 </para>
48 </listitem>
49 </varlistentry>
51 <varlistentry>
52 <term><replaceable class="parameter">name</replaceable></term>
53 <listitem>
54 <para>
55 The name of an existing access method.
56 </para>
57 </listitem>
58 </varlistentry>
60 <varlistentry>
61 <term><literal>CASCADE</literal></term>
62 <listitem>
63 <para>
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"/>).
68 </para>
69 </listitem>
70 </varlistentry>
72 <varlistentry>
73 <term><literal>RESTRICT</literal></term>
74 <listitem>
75 <para>
76 Refuse to drop the access method if any objects depend on it.
77 This is the default.
78 </para>
79 </listitem>
80 </varlistentry>
81 </variablelist>
82 </refsect1>
84 <refsect1>
85 <title>Examples</title>
87 <para>
88 Drop the access method <literal>heptree</literal>:
89 <programlisting>
90 DROP ACCESS METHOD heptree;
91 </programlisting></para>
92 </refsect1>
94 <refsect1>
95 <title>Compatibility</title>
97 <para>
98 <command>DROP ACCESS METHOD</command> is a
99 <productname>PostgreSQL</productname> extension.
100 </para>
101 </refsect1>
103 <refsect1>
104 <title>See Also</title>
106 <simplelist type="inline">
107 <member><xref linkend="sql-create-access-method"/></member>
108 </simplelist>
109 </refsect1>
111 </refentry>