The alter index page does not show the lock mode, but it seems it is an ACCESS EXCLUSIVE. Wouldn't an EXCLUSIVE lock be more appropriate and remove the index from planner consideration?
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных