Skip to main content
Deletes an index. Dropping any index is a metadata-only operation; run VACUUM on the table afterward to reclaim the storage the index occupied. To create indexes, see CREATE INDEX and CREATE AGGREGATING INDEX; for what each index does, see Storage and indexing.

Syntax

Parameters

Examples

Drop a regular index

Drop an aggregating index

A column referenced by a data skipping index cannot be dropped while that index exists; drop the index first. A table cannot be dropped while inverted or full-text indexes depend on it: drop the indexes first, or use DROP TABLE ... CASCADE.

See also