forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfbcf4b9
committed
Fix possible "tuple concurrently updated" error in ALTER TABLE.
When adding an inheritance parent to a table, an AccessShareLock on theparent isn't strong enough to prevent trouble, so takeShareUpdateExclusiveLock instead. Since this is a behavior change,albeit a fairly unobtrusive one, and since we have only one reportfrom the field, no back-patch.Report by Jon Nelson, analysis by Alvaro Herrera, fix by me.1 parent7275899 commitfbcf4b9
1 file changed
+11
-4
lines changedLines changed: 11 additions & 4 deletions
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
Comments
(0)