首页 > 解决方案 > 如果不存在,则在 Postgresql 中使用锁创建索引

问题描述

我有一个与索引创建相关的代码语句

create index if not exists foo_table_index_any_id on paublic.foo_table (any_id);

如果已经在那里创建了索引,表会被独占锁定吗?

标签: sqlpostgresqlindexinglocking

解决方案


推荐阅读