- Notifications
You must be signed in to change notification settings - Fork28
Commit39a68e5
committed
Fix toast table creation.
Instead of using slightly-too-clever heuristics to decide when we mustcreate a TOAST table, just check whether one is needed every time thetable is altered. Checking whether a toast table is needed is cheapenough that we needn't worry about doing it on every ALTER TABLE command,and the previous coding is apparently prone to accidental breakage:commit04e17ba broken ALTER TABLE ..SET STORAGE, which moved some actions from AT_PASS_COL_ATTRS toAT_PASS_MISC, and commit6c57239 brokeALTER TABLE .. ADD COLUMN by changing the way that adding columnsrecurses into child tables.Noah Misch, with one comment change by me1 parenteca75a1 commit39a68e5
File tree
6 files changed
+47
-13
lines changed- src
- backend
- catalog
- commands
- test/regress
- expected
- input
- output
- sql
6 files changed
+47
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3022 | 3022 | | |
3023 | 3023 | | |
3024 | 3024 | | |
3025 | | - | |
3026 | | - | |
3027 | | - | |
3028 | | - | |
| 3025 | + | |
3029 | 3026 | | |
3030 | 3027 | | |
3031 | 3028 | | |
3032 | 3029 | | |
3033 | | - | |
3034 | | - | |
3035 | | - | |
3036 | | - | |
| 3030 | + | |
3037 | 3031 | | |
3038 | 3032 | | |
3039 | 3033 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1522 | 1522 | | |
1523 | 1523 | | |
1524 | 1524 | | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1525 | 1538 | | |
1526 | 1539 | | |
1527 | 1540 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
379 | 390 | | |
380 | 391 | | |
381 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
1136 | 1146 | | |
1137 | 1147 | | |
1138 | 1148 | | |
| |||
0 commit comments
Comments
(0)