forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit44475e7
committed
Centralize some ALTER <whatever> .. SET SCHEMA checks.
Any flavor of ALTER <whatever> .. SET SCHEMA fails if (1) the objectis already in the new schema, (2) either the old or new schema isa temp schema, or (3) either the old or new schema is the TOAST schema.Extraced from a patch by Dimitri Fontaine, with additional hacking by me.1 parent5272d79 commit44475e7
File tree
7 files changed
+58
-54
lines changed- src
- backend
- catalog
- commands
- include/catalog
7 files changed
+58
-54
lines changedLines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2684 | 2684 |
| |
2685 | 2685 |
| |
2686 | 2686 |
| |
| 2687 | + | |
| 2688 | + | |
| 2689 | + | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
2687 | 2702 |
| |
2688 | 2703 |
| |
2689 | 2704 |
| |
|
Lines changed: 34 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2339 | 2339 |
| |
2340 | 2340 |
| |
2341 | 2341 |
| |
| 2342 | + | |
| 2343 | + | |
| 2344 | + | |
| 2345 | + | |
| 2346 | + | |
| 2347 | + | |
| 2348 | + | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
| 2352 | + | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
2342 | 2376 |
| |
2343 | 2377 |
| |
2344 | 2378 |
| |
|
Lines changed: 2 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1899 | 1899 |
| |
1900 | 1900 |
| |
1901 | 1901 |
| |
1902 |
| - | |
1903 |
| - | |
1904 |
| - | |
1905 |
| - | |
1906 |
| - | |
1907 |
| - | |
1908 |
| - | |
1909 |
| - | |
1910 |
| - | |
1911 |
| - | |
1912 |
| - | |
1913 |
| - | |
1914 |
| - | |
1915 |
| - | |
1916 |
| - | |
1917 |
| - | |
1918 |
| - | |
1919 |
| - | |
| 1902 | + | |
| 1903 | + | |
1920 | 1904 |
| |
1921 | 1905 |
| |
1922 | 1906 |
| |
|
Lines changed: 2 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8114 | 8114 |
| |
8115 | 8115 |
| |
8116 | 8116 |
| |
8117 |
| - | |
8118 |
| - | |
8119 |
| - | |
8120 |
| - | |
8121 |
| - | |
8122 |
| - | |
8123 |
| - | |
8124 |
| - | |
8125 |
| - | |
8126 |
| - | |
8127 |
| - | |
8128 |
| - | |
8129 |
| - | |
8130 |
| - | |
8131 |
| - | |
8132 |
| - | |
8133 |
| - | |
8134 |
| - | |
| 8117 | + | |
| 8118 | + | |
8135 | 8119 |
| |
8136 | 8120 |
| |
8137 | 8121 |
| |
|
Lines changed: 2 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2828 | 2828 |
| |
2829 | 2829 |
| |
2830 | 2830 |
| |
2831 |
| - | |
2832 |
| - | |
2833 |
| - | |
2834 |
| - | |
2835 |
| - | |
2836 |
| - | |
2837 |
| - | |
2838 |
| - | |
2839 |
| - | |
2840 |
| - | |
2841 |
| - | |
2842 |
| - | |
2843 |
| - | |
2844 |
| - | |
2845 |
| - | |
2846 |
| - | |
2847 |
| - | |
2848 |
| - | |
| 2831 | + | |
| 2832 | + | |
2849 | 2833 |
| |
2850 | 2834 |
| |
2851 | 2835 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
| 168 | + | |
168 | 169 |
| |
169 | 170 |
| |
170 | 171 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
| 97 | + | |
| 98 | + | |
97 | 99 |
| |
98 | 100 |
| |
99 | 101 |
| |
|
0 commit comments
Comments
(0)