forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitad6fbbe
committed
Fix ALTER TABLE .. ADD COLUMN with complex inheritance trees
This command, when used to add a column on a parent table with a complexinheritance tree, tried to update multiple times the same tuple inpg_attribute for a child table when incrementing attinhcount, causingfailures with "tuple already updated by self" because of a missingCommandCounterIncrement() between two updates.This exists for a rather long time, so backpatch all the way down.Reported-by: Alexander LakhinAuthor: Tender WangReviewed-by: Richard GuoDiscussion:https://postgr.es/m/18297-b04cd83a55b51e35@postgresql.orgBackpatch-through: 121 parent3fd36be commitad6fbbe
File tree
3 files changed
+30
-0
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+30
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6805 | 6805 |
| |
6806 | 6806 |
| |
6807 | 6807 |
| |
| 6808 | + | |
| 6809 | + | |
| 6810 | + | |
| 6811 | + | |
6808 | 6812 |
| |
6809 | 6813 |
| |
6810 | 6814 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1088 | 1088 |
| |
1089 | 1089 |
| |
1090 | 1090 |
| |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
1091 | 1108 |
| |
1092 | 1109 |
| |
1093 | 1110 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
372 | 372 |
| |
373 | 373 |
| |
374 | 374 |
| |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
375 | 384 |
| |
376 | 385 |
| |
377 | 386 |
| |
|
0 commit comments
Comments
(0)