]> begriffs open source - ai-pg/blob - full-docs/txt/sql-drop-access-method.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-drop-access-method.txt
1
2 DROP ACCESS METHOD
3
4    DROP ACCESS METHOD — remove an access method
5
6 Synopsis
7
8 DROP ACCESS METHOD [ IF EXISTS ] name [ CASCADE | RESTRICT ]
9
10 Description
11
12    DROP ACCESS METHOD removes an existing access method. Only superusers
13    can drop access methods.
14
15 Parameters
16
17    IF EXISTS
18           Do not throw an error if the access method does not exist. A
19           notice is issued in this case.
20
21    name
22           The name of an existing access method.
23
24    CASCADE
25           Automatically drop objects that depend on the access method
26           (such as operator classes, operator families, and indexes), and
27           in turn all objects that depend on those objects (see
28           Section 5.15).
29
30    RESTRICT
31           Refuse to drop the access method if any objects depend on it.
32           This is the default.
33
34 Examples
35
36    Drop the access method heptree:
37 DROP ACCESS METHOD heptree;
38
39 Compatibility
40
41    DROP ACCESS METHOD is a PostgreSQL extension.
42
43 See Also
44
45    CREATE ACCESS METHOD