create index concurrently blocked by other query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
    PGv14, it's a time range partition table, we first create index ... on ONLY parent table and it's done very fast, then we are doing "create index concurrently ... on  each partition table", then we saw it blocked by some other sessopm  "select on other tables" , is it expected ? 
   from pg_locks, and pg_stat_activity : 
for this relation we are creating index concurrently, only "access share" lock by other sessions:

blocked pid 512694:
blocked query: CREATE INDEX CONCURRENTLY IF NOT EXISTS IDX_XMEETINGMETADATA_P202401_xxxID ON xxxxxx_P202401(xxID,SssID); | 

blocking pid 90252 
blocking query: it's a select from other tables not the one we are creating index concurrently..
 SELECT m.Meetingxxx mxxxKey, m.MTGxxxx....,
                                                                            +
             |              |              |               |
                           

Thanks,

James 

[Index of Archives]     [Postgresql Home]     [Postgresql General]     [Postgresql Performance]     [Postgresql PHP]     [Postgresql Jobs]     [PHP Users]     [PHP Databases]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Forum]

  Powered by Linux