PostgreSQL 18 · Performance and maintenance

Create an index

Add an index to speed up lookups on a column.

CREATE INDEX idx_users_email ON users (email);

Official PostgreSQL 18 documentation

More performance and maintenance commands

All performance and maintenance commands · PostgreSQL 18 cheatsheet

Was this page helpful?