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

Lines changed: 3 additions & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy