Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 279 Bytes

create-an-index-without-blocking.md

File metadata and controls

11 lines (7 loc) · 279 Bytes

Create An Index Without Blocking

Category: Postgres

Indexes can be created in Postgres without holding a lock on a table.

CREATE INDEX CONCURRENTLY tablename_columnname_idx ON tablename (columnname);

This operation can not be performed inside a transaction.