projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
959277a
)
C comment: update lock level mention in comment
author
Bruce Momjian
<bruce@momjian.us>
Fri, 20 Mar 2015 12:31:10 +0000
(08:31 -0400)
committer
Bruce Momjian
<bruce@momjian.us>
Fri, 20 Mar 2015 12:31:13 +0000
(08:31 -0400)
Patch by Etsuro Fujita
src/backend/commands/tablecmds.c
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/commands/tablecmds.c
b/src/backend/commands/tablecmds.c
index 623e6bfba81c6ad02284d9984705a4157a550e4b..4147457505519aad50f30ed05fa54fee49d72a0d 100644
(file)
--- a/
src/backend/commands/tablecmds.c
+++ b/
src/backend/commands/tablecmds.c
@@
-1756,9
+1756,9
@@
MergeAttributes(List *schema, List *supers, char relpersistence,
pfree(newattno);
/*
- * Close the parent rel, but keep our
AccessShareLock on it until xac
t
- *
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 i
t
+ *
until xact commit. That will prevent someone else from deleting or
+ *
ALTERing
the parent before the child is committed.
*/
heap_close(relation, NoLock);
}