1DROP INDEX()                     SQL Commands                     DROP INDEX()
2
3
4

NAME

6       DROP INDEX - remove an index
7
8

SYNOPSIS

10       DROP INDEX [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
11
12

DESCRIPTION

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

PARAMETERS

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

EXAMPLES

32       This command will remove the index title_idx:
33
34       DROP INDEX title_idx;
35
36

COMPATIBILITY

38       DROP INDEX is a PostgreSQL language extension. There are no  provisions
39       for indexes in the SQL standard.
40

SEE ALSO

42       CREATE INDEX [create_index(7)]
43
44
45
46SQL - Language Statements         2008-06-08                      DROP INDEX()
Impressum