forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6a1396f
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 parentcf0f465 commit6a1396f
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 | |
---|---|---|---|
| |||
2234 | 2234 |
| |
2235 | 2235 |
| |
2236 | 2236 |
| |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
2237 | 2244 |
| |
2238 |
| - | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
2239 | 2254 |
| |
2240 | 2255 |
| |
2241 |
| - | |
2242 |
| - | |
| 2256 | + | |
2243 | 2257 |
| |
2244 | 2258 |
| |
2245 | 2259 |
| |
| |||
2249 | 2263 |
| |
2250 | 2264 |
| |
2251 | 2265 |
| |
2252 |
| - | |
2253 |
| - | |
2254 |
| - | |
2255 |
| - | |
2256 |
| - | |
| 2266 | + | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
2257 | 2271 |
| |
2258 | 2272 |
| |
2259 | 2273 |
| |
|
Lines changed: 7 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1519 | 1519 |
| |
1520 | 1520 |
| |
1521 | 1521 |
| |
| 1522 | + | |
| 1523 | + | |
1522 | 1524 |
| |
1523 |
| - | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
| 1528 | + | |
1524 | 1529 |
| |
1525 |
| - | |
1526 | 1530 |
| |
1527 |
| - | |
1528 |
| - | |
| 1531 | + | |
1529 | 1532 |
| |
1530 | 1533 |
| |
1531 | 1534 |
| |
|
0 commit comments
Comments
(0)