Create index https://www.postgresql.org/docs/current/sql-createindex.html by default blocks the access to the table. Adding the keyword "concurrently", it does avoid the issue.
Create index https://www.postgresql.org/docs/current/sql-createindex.html by default blocks the access to the table. Adding the keyword "concurrently", it does avoid the issue.