- Notifications
You must be signed in to change notification settings - Fork5.2k
Commitbd17896
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 parentb057512 commitbd17896
File tree
3 files changed
+18
-2
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7533 | 7533 | | |
7534 | 7534 | | |
7535 | 7535 | | |
| 7536 | + | |
| 7537 | + | |
7536 | 7538 | | |
7537 | 7539 | | |
7538 | 7540 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1096 | 1096 | | |
1097 | 1097 | | |
1098 | 1098 | | |
1099 | | - | |
| 1099 | + | |
1100 | 1100 | | |
1101 | 1101 | | |
| 1102 | + | |
| 1103 | + | |
1102 | 1104 | | |
1103 | 1105 | | |
1104 | 1106 | | |
1105 | 1107 | | |
1106 | 1108 | | |
| 1109 | + | |
1107 | 1110 | | |
1108 | 1111 | | |
1109 | 1112 | | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
1110 | 1123 | | |
1111 | 1124 | | |
1112 | 1125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
384 | 384 | | |
| 385 | + | |
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
| |||
0 commit comments
Comments
(0)