h...creating and index requires exclusive access. did you try the concurrent variant?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных