aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/functions.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2011-03-18 22:09:57 -0400
committerRobert Haas <rhaas@postgresql.org>2011-03-18 22:09:57 -0400
commitfbcf4b92aa64d4577bcf25925b055316b978744a (patch)
tree6576b9572a2ced538a6ecd8a12af73938a8bdb83 /src/backend/executor/functions.c
parent727589995a3e027046f0da7af6ba665b0b47f89f (diff)
downloadpostgresql-fbcf4b92aa64d4577bcf25925b055316b978744a.tar.gz
postgresql-fbcf4b92aa64d4577bcf25925b055316b978744a.zip
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.
Diffstat (limited to 'src/backend/executor/functions.c')
0 files changed, 0 insertions, 0 deletions