Level down the lock of creating indexes on AO tables if blkdir exists
Appendoptimized tables need block directory relation for index access. Creating and maintaining block directory is expensive. We delay the block directory creation until it is really needed - the first index creation. Once created, all indexes share the same block directory. We need stronger lock (ShareRowExclusiveLock) if the block directory needs to be created. If the block directory already exists, we can use the same lock as heap tables.
Showing
想要评论请 注册 或 登录