Content-Length: 262318 | pFad | http://github.com/postgrespro/postgres/commit/13a10c0ccd984643ef88997ac177da7c4b7e46a6

C6 C comment: update lock level mention in comment · postgrespro/postgres@13a10c0 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/13a10c0ccd984643ef88997ac177da7c4b7e46a6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy