Commit 65377e0
committed
Tighten ALTER FOREIGN TABLE .. SET DATA TYPE checks.
If the foreign table's rowtype is being used as the type of a column in
another table, we can't just up and change its data type. This was
already checked for composite types and ordinary tables, but we
previously failed to enforce it for foreign tables.1 parent 51dbc87 commit 65377e0
File tree
5 files changed
+34
-27
lines changed- src
- backend/commands
- include/commands
- test/regress
- expected
- sql
5 files changed
+34
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3391 | 3391 | | |
3392 | 3392 | | |
3393 | 3393 | | |
3394 | | - | |
3395 | | - | |
| 3394 | + | |
| 3395 | + | |
3396 | 3396 | | |
3397 | 3397 | | |
3398 | 3398 | | |
| |||
3860 | 3860 | | |
3861 | 3861 | | |
3862 | 3862 | | |
3863 | | - | |
3864 | | - | |
3865 | | - | |
| 3863 | + | |
| 3864 | + | |
3866 | 3865 | | |
3867 | 3866 | | |
3868 | 3867 | | |
| |||
3905 | 3904 | | |
3906 | 3905 | | |
3907 | 3906 | | |
3908 | | - | |
3909 | | - | |
3910 | | - | |
3911 | | - | |
3912 | | - | |
3913 | | - | |
3914 | | - | |
| 3907 | + | |
| 3908 | + | |
| 3909 | + | |
| 3910 | + | |
| 3911 | + | |
3915 | 3912 | | |
3916 | | - | |
3917 | | - | |
3918 | | - | |
3919 | | - | |
3920 | | - | |
3921 | | - | |
| 3913 | + | |
| 3914 | + | |
| 3915 | + | |
| 3916 | + | |
| 3917 | + | |
| 3918 | + | |
| 3919 | + | |
3922 | 3920 | | |
3923 | 3921 | | |
3924 | 3922 | | |
| |||
3927 | 3925 | | |
3928 | 3926 | | |
3929 | 3927 | | |
3930 | | - | |
| 3928 | + | |
3931 | 3929 | | |
3932 | 3930 | | |
3933 | 3931 | | |
| |||
3943 | 3941 | | |
3944 | 3942 | | |
3945 | 3943 | | |
3946 | | - | |
| 3944 | + | |
3947 | 3945 | | |
3948 | 3946 | | |
3949 | 3947 | | |
| |||
6444 | 6442 | | |
6445 | 6443 | | |
6446 | 6444 | | |
6447 | | - | |
| 6445 | + | |
| 6446 | + | |
6448 | 6447 | | |
6449 | 6448 | | |
6450 | 6449 | | |
6451 | 6450 | | |
6452 | 6451 | | |
6453 | 6452 | | |
6454 | | - | |
| 6453 | + | |
6455 | 6454 | | |
6456 | 6455 | | |
6457 | 6456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2183 | 2183 | | |
2184 | 2184 | | |
2185 | 2185 | | |
2186 | | - | |
| 2186 | + | |
2187 | 2187 | | |
2188 | 2188 | | |
2189 | 2189 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
58 | 57 | | |
59 | 58 | | |
60 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
696 | 701 | | |
697 | 702 | | |
698 | 703 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
297 | 301 | | |
298 | 302 | | |
299 | 303 | | |
| |||
0 commit comments