Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    9e859a91
    Avoid deadlock between concurrent CREATE INDEX CONCURRENTLY commands. · 9e859a91
    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.
    9e859a91
    History
    Avoid deadlock between concurrent CREATE INDEX CONCURRENTLY commands.
    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.
indexcmds.c 58.92 KiB