Создание нового индекса занимает много времени PostgreSQL
Create index with concurrency :
CREATE INDEX CONCURRENTLY users_name_idx ON users(name);
Julianto Tjan
Create index with concurrency :
CREATE INDEX CONCURRENTLY users_name_idx ON users(name);