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
| Parameter | Description |
|---|---|
<index_name> | The name of the index to be deleted. |
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
- Storage and indexing describes what each index does and how it is used.
CREATE INDEX,CREATE AGGREGATING INDEX, andVACUUM.