PostgreSQL Global Development Group

CREATE INDEX

CREATE INDEX constructs an index on the specified column(s) of a table.

Note

Indexes can significantly improve query performance.

Syntax

CREATE INDEX index_name ON table_name (column_name);

Parameters

ParameterDescription
index_nameName of the index to create
table_nameName of the table

See also DROP INDEX.