• T
    Fix LOCK TABLE to eliminate the race condition that could make it give weird · f23bdda3
    Tom Lane 提交于
    errors when tables are concurrently dropped.  To do this we must take lock
    on each relation before we check its privileges.  The old code was trying
    to do that the other way around, which is a bit pointless when there are lots
    of other commands that lock relations before checking privileges.  I did keep
    it checking each relation's privilege before locking the next relation, which
    is a detail that ALTER TABLE isn't too picky about.
    f23bdda3
heapam.c 140.4 KB