1DROP INDEX(7) SQL Commands DROP INDEX(7)
2
3
4
6 DROP INDEX - remove an index
7
8
10 DROP INDEX [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
11
12
14 DROP INDEX drops an existing index from the database system. To execute
15 this command you must be the owner of the index.
16
18 IF EXISTS
19 Do not throw an error if the index does not exist. A notice is
20 issued in this case.
21
22 name The name (optionally schema-qualified) of an index to remove.
23
24 CASCADE
25 Automatically drop objects that depend on the index.
26
27 RESTRICT
28 Refuse to drop the index if any objects depend on it. This is
29 the default.
30
32 This command will remove the index title_idx:
33
34 DROP INDEX title_idx;
35
36
38 DROP INDEX is a PostgreSQL language extension. There are no provisions
39 for indexes in the SQL standard.
40
42 CREATE INDEX [create_index(7)]
43
44
45
46SQL - Language Statements 2011-09-22 DROP INDEX(7)