- Notifications
You must be signed in to change notification settings - Fork5k
Commit4a02af8
committed
Simplify syntax for ALTER TABLE ALTER CONSTRAINT NO INHERIT
Commitd45597f introduced the ability to change a not-nullconstraint from NO INHERIT to INHERIT and vice versa, but we includedthe SET noise word in the syntax for it. The SET turns out not to benecessary and goes against what the SQL standard says for other ALTERTABLE subcommands, so remove it.This changes the way this command is processed for constraint typesother than not-null, so there are some error message changes.Reviewed-by: Peter Eisentraut <peter@eisentraut.org>Reviewed-by: Suraj Kharage <suraj.kharage@enterprisedb.com>Discussion:https://postgr.es/m/202503251602.vsxaehsyaoac@alvherre.pgsql1 parent72c2f36 commit4a02af8
File tree
6 files changed
+43
-55
lines changed- doc/src/sgml/ref
- src
- backend
- commands
- parser
- test/regress
- expected
- sql
6 files changed
+43
-55
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
| 62 | + | |
63 | 63 |
| |
64 | 64 |
| |
65 | 65 |
| |
| |||
564 | 564 |
| |
565 | 565 |
| |
566 | 566 |
| |
567 |
| - | |
568 |
| - | |
| 567 | + | |
| 568 | + | |
569 | 569 |
| |
570 | 570 |
| |
571 | 571 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12199 | 12199 |
| |
12200 | 12200 |
| |
12201 | 12201 |
| |
12202 |
| - | |
| 12202 | + | |
12203 | 12203 |
| |
12204 | 12204 |
| |
12205 | 12205 |
| |
|
Lines changed: 8 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2662 | 2662 |
| |
2663 | 2663 |
| |
2664 | 2664 |
| |
2665 |
| - | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
2666 | 2670 |
| |
2667 | 2671 |
| |
2668 | 2672 |
| |
2669 |
| - | |
| 2673 | + | |
2670 | 2674 |
| |
2671 | 2675 |
| |
2672 |
| - | |
2673 |
| - | |
| 2676 | + | |
| 2677 | + | |
2674 | 2678 |
| |
2675 | 2679 |
| |
2676 | 2680 |
| |
| |||
2681 | 2685 |
| |
2682 | 2686 |
| |
2683 | 2687 |
| |
2684 |
| - | |
2685 |
| - | |
2686 |
| - | |
2687 |
| - | |
2688 |
| - | |
2689 |
| - | |
2690 |
| - | |
2691 |
| - | |
2692 |
| - | |
2693 |
| - | |
2694 |
| - | |
2695 |
| - | |
2696 |
| - | |
2697 |
| - | |
2698 | 2688 |
| |
2699 | 2689 |
| |
2700 | 2690 |
| |
|
Lines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1284 | 1284 |
| |
1285 | 1285 |
| |
1286 | 1286 |
| |
1287 |
| - | |
1288 |
| - | |
1289 |
| - | |
| 1287 | + | |
1290 | 1288 |
| |
1291 | 1289 |
| |
1292 | 1290 |
| |
|
Lines changed: 15 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2754 | 2754 |
| |
2755 | 2755 |
| |
2756 | 2756 |
| |
2757 |
| - | |
| 2757 | + | |
2758 | 2758 |
| |
2759 | 2759 |
| |
2760 | 2760 |
| |
| |||
2767 | 2767 |
| |
2768 | 2768 |
| |
2769 | 2769 |
| |
2770 |
| - | |
2771 |
| - | |
| 2770 | + | |
| 2771 | + | |
2772 | 2772 |
| |
2773 | 2773 |
| |
2774 | 2774 |
| |
| |||
2799 | 2799 |
| |
2800 | 2800 |
| |
2801 | 2801 |
| |
2802 |
| - | |
| 2802 | + | |
2803 | 2803 |
| |
2804 | 2804 |
| |
2805 | 2805 |
| |
2806 | 2806 |
| |
2807 | 2807 |
| |
2808 | 2808 |
| |
2809 |
| - | |
2810 |
| - | |
| 2809 | + | |
| 2810 | + | |
2811 | 2811 |
| |
2812 | 2812 |
| |
2813 | 2813 |
| |
| |||
2837 | 2837 |
| |
2838 | 2838 |
| |
2839 | 2839 |
| |
2840 |
| - | |
| 2840 | + | |
2841 | 2841 |
| |
2842 |
| - | |
2843 |
| - | |
| 2842 | + | |
| 2843 | + | |
2844 | 2844 |
| |
2845 | 2845 |
| |
2846 | 2846 |
| |
| |||
2853 | 2853 |
| |
2854 | 2854 |
| |
2855 | 2855 |
| |
2856 |
| - | |
| 2856 | + | |
2857 | 2857 |
| |
2858 | 2858 |
| |
2859 |
| - | |
| 2859 | + | |
2860 | 2860 |
| |
2861 |
| - | |
| 2861 | + | |
2862 | 2862 |
| |
2863 |
| - | |
| 2863 | + | |
2864 | 2864 |
| |
2865 | 2865 |
| |
2866 |
| - | |
| 2866 | + | |
2867 | 2867 |
| |
2868 | 2868 |
| |
2869 | 2869 |
| |
2870 |
| - | |
| 2870 | + | |
2871 | 2871 |
| |
2872 | 2872 |
| |
2873 | 2873 |
| |
|
Lines changed: 15 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1099 | 1099 |
| |
1100 | 1100 |
| |
1101 | 1101 |
| |
1102 |
| - | |
| 1102 | + | |
1103 | 1103 |
| |
1104 | 1104 |
| |
1105 | 1105 |
| |
1106 | 1106 |
| |
1107 |
| - | |
1108 |
| - | |
| 1107 | + | |
| 1108 | + | |
1109 | 1109 |
| |
1110 | 1110 |
| |
1111 | 1111 |
| |
| |||
1122 | 1122 |
| |
1123 | 1123 |
| |
1124 | 1124 |
| |
1125 |
| - | |
| 1125 | + | |
1126 | 1126 |
| |
1127 | 1127 |
| |
1128 | 1128 |
| |
1129 | 1129 |
| |
1130 |
| - | |
1131 |
| - | |
| 1130 | + | |
| 1131 | + | |
1132 | 1132 |
| |
1133 | 1133 |
| |
1134 | 1134 |
| |
| |||
1144 | 1144 |
| |
1145 | 1145 |
| |
1146 | 1146 |
| |
1147 |
| - | |
1148 |
| - | |
1149 |
| - | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
1150 | 1150 |
| |
1151 | 1151 |
| |
1152 | 1152 |
| |
1153 | 1153 |
| |
1154 | 1154 |
| |
1155 | 1155 |
| |
1156 |
| - | |
| 1156 | + | |
1157 | 1157 |
| |
1158 | 1158 |
| |
1159 |
| - | |
1160 |
| - | |
1161 |
| - | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
1162 | 1162 |
| |
1163 |
| - | |
| 1163 | + | |
1164 | 1164 |
| |
1165 | 1165 |
| |
1166 |
| - | |
| 1166 | + | |
1167 | 1167 |
| |
1168 | 1168 |
| |
1169 | 1169 |
| |
|
0 commit comments
Comments
(0)