Commit b158e0b
committed
Fix alter_table.sql test case to test what it claims to.
The stanza "SET STORAGE may need to add a TOAST table" does not
test what it's supposed to, and hasn't done so since we added
the ability to store constant column default values as metadata.
We need to use a non-constant default to get the expected table
rewrite to actually happen.
Fix that, and add the missing checks that would have exposed the
problem to begin with.
Noted while reviewing a patch that made changes in this test case.
Back-patch to v11 where the problem came in.1 parent 36e545c commit b158e0b
File tree
2 files changed
+30
-13
lines changed- src/test/regress
- expected
- sql
2 files changed
+30
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2245 | 2245 | | |
2246 | 2246 | | |
2247 | 2247 | | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
2248 | 2255 | | |
2249 | | - | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
2250 | 2265 | | |
2251 | 2266 | | |
2252 | | - | |
2253 | | - | |
| 2267 | + | |
2254 | 2268 | | |
2255 | 2269 | | |
2256 | 2270 | | |
| |||
2263 | 2277 | | |
2264 | 2278 | | |
2265 | 2279 | | |
2266 | | - | |
2267 | | - | |
2268 | | - | |
2269 | | - | |
2270 | | - | |
2271 | | - | |
| 2280 | + | |
| 2281 | + | |
| 2282 | + | |
| 2283 | + | |
| 2284 | + | |
| 2285 | + | |
2272 | 2286 | | |
2273 | 2287 | | |
2274 | 2288 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1528 | 1528 | | |
1529 | 1529 | | |
1530 | 1530 | | |
| 1531 | + | |
| 1532 | + | |
1531 | 1533 | | |
1532 | | - | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
1533 | 1538 | | |
1534 | | - | |
1535 | 1539 | | |
1536 | | - | |
1537 | | - | |
| 1540 | + | |
1538 | 1541 | | |
1539 | 1542 | | |
1540 | 1543 | | |
| |||
0 commit comments