C comment: update lock level mention in comment
authorBruce Momjian <bruce@momjian.us>
Fri, 20 Mar 2015 12:31:10 +0000 (08:31 -0400)
committerBruce Momjian <bruce@momjian.us>
Fri, 20 Mar 2015 12:31:13 +0000 (08:31 -0400)
Patch by Etsuro Fujita

src/backend/commands/tablecmds.c

index 623e6bfba81c6ad02284d9984705a4157a550e4b..4147457505519aad50f30ed05fa54fee49d72a0d 100644 (file)
@@ -1756,9 +1756,9 @@ MergeAttributes(List *schema, List *supers, char relpersistence,
        pfree(newattno);
 
        /*
-        * Close the parent rel, but keep our AccessShareLock on it until xact
-        * commit.  That will prevent someone else from deleting or ALTERing
-        * the parent before the child is committed.
+        * Close the parent rel, but keep our ShareUpdateExclusiveLock on it
+        * until xact commit.  That will prevent someone else from deleting or
+        * ALTERing the parent before the child is committed.
         */
        heap_close(relation, NoLock);
    }