forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9c1a4fc
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 nottest what it's supposed to, and hasn't done so since we addedthe ability to store constant column default values as metadata.We need to use a non-constant default to get the expected tablerewrite to actually happen.Fix that, and add the missing checks that would have exposed theproblem 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 parent5765063 commit9c1a4fc
File tree
2 files changed
+29
-12
lines changed- src/test/regress
- expected
- sql
2 files changed
+29
-12
lines changedLines changed: 22 additions & 8 deletions
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 |
| |
| |||
2260 | 2274 |
| |
2261 | 2275 |
| |
2262 | 2276 |
| |
2263 |
| - | |
2264 |
| - | |
2265 |
| - | |
2266 |
| - | |
2267 |
| - | |
| 2277 | + | |
| 2278 | + | |
| 2279 | + | |
| 2280 | + | |
| 2281 | + | |
2268 | 2282 |
| |
2269 | 2283 |
| |
2270 | 2284 |
| |
|
Lines changed: 7 additions & 4 deletions
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
Comments
(0)