Commit fbcf4b9
committed
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.1 parent 7275899 commit fbcf4b9
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1345 | 1345 | | |
1346 | 1346 | | |
1347 | 1347 | | |
1348 | | - | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
1349 | 1356 | | |
1350 | 1357 | | |
1351 | 1358 | | |
| |||
7942 | 7949 | | |
7943 | 7950 | | |
7944 | 7951 | | |
7945 | | - | |
7946 | | - | |
| 7952 | + | |
| 7953 | + | |
7947 | 7954 | | |
7948 | | - | |
| 7955 | + | |
7949 | 7956 | | |
7950 | 7957 | | |
7951 | 7958 | | |
| |||
0 commit comments