4 DROP INDEX — remove an index
8 DROP INDEX [ CONCURRENTLY ] [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]
12 DROP INDEX drops an existing index from the database system. To execute
13 this command you must be the owner of the index.
18 Drop the index without locking out concurrent selects, inserts,
19 updates, and deletes on the index's table. A normal DROP INDEX
20 acquires an ACCESS EXCLUSIVE lock on the table, blocking other
21 accesses until the index drop can be completed. With this
22 option, the command instead waits until conflicting transactions
25 There are several caveats to be aware of when using this option.
26 Only one index name can be specified, and the CASCADE option is
27 not supported. (Thus, an index that supports a UNIQUE or PRIMARY
28 KEY constraint cannot be dropped this way.) Also, regular DROP
29 INDEX commands can be performed within a transaction block, but
30 DROP INDEX CONCURRENTLY cannot. Lastly, indexes on partitioned
31 tables cannot be dropped using this option.
33 For temporary tables, DROP INDEX is always non-concurrent, as no
34 other session can access them, and non-concurrent index drop is
38 Do not throw an error if the index does not exist. A notice is
42 The name (optionally schema-qualified) of an index to remove.
45 Automatically drop objects that depend on the index, and in turn
46 all objects that depend on those objects (see Section 5.15).
49 Refuse to drop the index if any objects depend on it. This is
54 This command will remove the index title_idx:
59 DROP INDEX is a PostgreSQL language extension. There are no provisions
60 for indexes in the SQL standard.