• Stephen Frost's avatar
    Only issue LOCK TABLE commands when necessary · e1b120a8
    Stephen Frost authored
    Reviewing the cases where we need to LOCK a given table during a dump,
    it was pointed out by Tom that we really don't need to LOCK a table if
    we are only looking to dump the ACL for it, or certain other
    components.  After reviewing the queries run for all of the component
    pieces, a list of components were determined to not require LOCK'ing
    of the table.
    
    This implements a check to avoid LOCK'ing those tables.
    
    Initial complaint from Rushabh Lathia, discussed with Robert and Tom,
    the patch is mine.
    e1b120a8
pg_dump.c 537 KB