• A
    Revert "Revert "Avoids deadlocks for concurrent index creation on AO tables."" · 26a13953
    Adam Berlin 提交于
    This reverts commit c3726b09.
    
    The original commit, which we're re-introducing with this Revert, was failing
    because some isolation2 tests had this situation:
    
    Session one successfully reindexes with a blocking call without committing,
    continuing to hold the lock. Session two attempts to create an index on the
    same table, which is locked by session one.
    
    We introduced backgrounding of session two, which allows session one to return
    and commit, releasing the lock. Our change enables the test runner to behave in
    a realistic concurrent way, after the introduction of the
    ShareRowExclusiveLock.
    Co-authored-by: NJesse Zhang <sbjesse@gmail.com>
    26a13953
createidx_while_reindex_aoco_gist.out 3.3 KB