• Tom Lane's avatar
    Avoid deadlock between concurrent CREATE INDEX CONCURRENTLY commands. · c3d09b3b
    Tom Lane authored
    There was a high probability of two or more concurrent C.I.C. commands
    deadlocking just before completion, because each would wait for the others
    to release their reference snapshots.  Fix by releasing the snapshot
    before waiting for other snapshots to go away.
    
    Per report from Paul Hinze.  Back-patch to all active branches.
    c3d09b3b
indexcmds.c 58.4 KB