• Tom Lane's avatar
    Add a function GetLockConflicts() to lock.c to report xacts holding · e06fda0a
    Tom Lane authored
    locks that would conflict with a specified lock request, without
    actually trying to get that lock.  Use this instead of the former ad hoc
    method of doing the first wait step in CREATE INDEX CONCURRENTLY.
    Fixes problem with undetected deadlock and in many cases will allow the
    index creation to proceed sooner than it otherwise could've.  Per
    discussion with Greg Stark.
    e06fda0a
indexcmds.c 37 KB