- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitdd34cbf
committed
Need to do CommandCounterIncrement after StoreAttrMissingVal.
Without this, an additional change to the same pg_attribute rowwithin the same command will fail. This is possible at least withALTER TABLE ADD COLUMN on a multiple-inheritance-pathway structure.(Another potential hazard is that immediately-following operationsmight not see the missingval.)Introduced by95f6506, which split the former coding thatused a single pg_attribute update to change both atthasdef andatthasmissing/attmissingval into two updates, but missed thatthis should entail two CommandCounterIncrements as well. Likethat fix, back-patch through v13.Reported-by: Alexander Lakhin <exclusion@gmail.com>Author: Tender Wang <tndrwang@gmail.com>Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/025a3ffa-5eff-4a88-97fb-8f583b015965@gmail.comBackpatch-through: 131 parentebbdaf1 commitdd34cbf
File tree
3 files changed
+18
-2
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+18
-2
lines changedLines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
6715 | 6715 |
| |
6716 | 6716 |
| |
6717 | 6717 |
| |
| 6718 | + | |
| 6719 | + | |
6718 | 6720 |
| |
6719 | 6721 |
| |
6720 | 6722 |
| |
|
Lines changed: 14 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1068 | 1068 |
| |
1069 | 1069 |
| |
1070 | 1070 |
| |
1071 |
| - | |
| 1071 | + | |
1072 | 1072 |
| |
1073 | 1073 |
| |
| 1074 | + | |
| 1075 | + | |
1074 | 1076 |
| |
1075 | 1077 |
| |
1076 | 1078 |
| |
1077 | 1079 |
| |
1078 | 1080 |
| |
| 1081 | + | |
1079 | 1082 |
| |
1080 | 1083 |
| |
1081 | 1084 |
| |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
1082 | 1095 |
| |
1083 | 1096 |
| |
1084 | 1097 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
358 | 358 |
| |
359 | 359 |
| |
360 | 360 |
| |
361 |
| - | |
| 361 | + | |
362 | 362 |
| |
| 363 | + | |
363 | 364 |
| |
364 | 365 |
| |
365 | 366 |
| |
|
0 commit comments
Comments
(0)