git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 7275899) | patch
Fix possible "tuple concurrently updated" error in ALTER TABLE.
2011年3月19日 02:09:57 +0000 (22:09 -0400)
2011年3月19日 02:09:57 +0000 (22:09 -0400)
commit fbcf4b92aa64d4577bcf25925b055316b978744a
Fix possible "tuple concurrently updated" error in ALTER TABLE.

When adding an inheritance parent to a table, an AccessShareLock on the
parent isn't strong enough to prevent trouble, so take
ShareUpdateExclusiveLock instead. Since this is a behavior change,
albeit a fairly unobtrusive one, and since we have only one report
from the field, no back-patch.

Report by Jon Nelson, analysis by Alvaro Herrera, fix by me.
src/backend/commands/tablecmds.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /