Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 13a10c0

Browse files
committed
C comment: update lock level mention in comment
Patch by Etsuro Fujita
1 parent 959277a commit 13a10c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/commands/tablecmds.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1756,9 +1756,9 @@ MergeAttributes(List *schema, List *supers, char relpersistence,
17561756
pfree(newattno);
17571757

17581758
/*
1759-
* Close the parent rel, but keep our AccessShareLock on it until xact
1760-
* commit. That will prevent someone else from deleting or ALTERing
1761-
* the parent before the child is committed.
1759+
* Close the parent rel, but keep our ShareUpdateExclusiveLock on it
1760+
* until xact commit. That will prevent someone else from deleting or
1761+
* ALTERing the parent before the child is committed.
17621762
*/
17631763
heap_close(relation, NoLock);
17641764
}

0 commit comments

Comments
 (0)