PostgreSQL 18 · Performance and maintenance

Create an index without blocking writes

Build the index while the table stays writable. Slower, and it cannot run inside a transaction.

CREATE INDEX CONCURRENTLY 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?