Commit 1ed6b89
committed
Remove support for postfix (right-unary) operators.
This feature has been a thorn in our sides for a long time, causing
many grammatical ambiguity problems. It doesn't seem worth the
pain to continue to support it, so remove it.
There are some follow-on improvements we can make in the grammar,
but this commit only removes the bare minimum number of productions,
plus assorted backend support code.
Note that pg_dump and psql continue to have full support, since
they may be used against older servers. However, pg_dump warns
about postfix operators. There is also a check in pg_upgrade.
Documentation-wise, I (tgl) largely removed the "left unary"
terminology in favor of saying "prefix operator", which is
a more standard and IMO less confusing term.
I included a catversion bump, although no initial catalog data
changes here, to mark the boundary at which oprkind = 'r'
stopped being valid in pg_operator.
Mark Dilger, based on work by myself and Robert Haas;
review by John Naylor
Discussion: https://postgr.es/m/38ca86db-42ab-9b48-2902-337a0d6b8311@2ndquadrant.com1 parent 76f412a commit 1ed6b89
File tree
32 files changed
+280
-340
lines changed- contrib/postgres_fdw
- doc/src/sgml
- ref
- src
- backend
- catalog
- commands
- nodes
- parser
- utils/adt
- bin
- pg_dump
- pg_upgrade
- psql
- include
- catalog
- parser
- test/regress
- expected
- sql
- tutorial
32 files changed
+280
-340
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2706 | 2706 | | |
2707 | 2707 | | |
2708 | 2708 | | |
2709 | | - | |
2710 | 2709 | | |
2711 | 2710 | | |
2712 | 2711 | | |
| |||
2716 | 2715 | | |
2717 | 2716 | | |
2718 | 2717 | | |
2719 | | - | |
2720 | | - | |
| 2718 | + | |
2721 | 2719 | | |
2722 | 2720 | | |
2723 | 2721 | | |
2724 | 2722 | | |
2725 | 2723 | | |
2726 | | - | |
2727 | | - | |
| 2724 | + | |
| 2725 | + | |
2728 | 2726 | | |
2729 | | - | |
2730 | | - | |
| 2727 | + | |
2731 | 2728 | | |
2732 | 2729 | | |
2733 | 2730 | | |
2734 | 2731 | | |
2735 | 2732 | | |
2736 | 2733 | | |
2737 | 2734 | | |
2738 | | - | |
2739 | | - | |
2740 | | - | |
2741 | | - | |
2742 | | - | |
2743 | | - | |
| 2735 | + | |
| 2736 | + | |
2744 | 2737 | | |
2745 | 2738 | | |
2746 | 2739 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5159 | 5159 | | |
5160 | 5160 | | |
5161 | 5161 | | |
5162 | | - | |
5163 | | - | |
| 5162 | + | |
| 5163 | + | |
5164 | 5164 | | |
5165 | 5165 | | |
5166 | 5166 | | |
| |||
5188 | 5188 | | |
5189 | 5189 | | |
5190 | 5190 | | |
5191 | | - | |
| 5191 | + | |
5192 | 5192 | | |
5193 | 5193 | | |
5194 | 5194 | | |
| |||
5266 | 5266 | | |
5267 | 5267 | | |
5268 | 5268 | | |
5269 | | - | |
| 5269 | + | |
5270 | 5270 | | |
5271 | 5271 | | |
5272 | 5272 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
103 | 92 | | |
104 | 93 | | |
105 | 94 | | |
| |||
160 | 149 | | |
161 | 150 | | |
162 | 151 | | |
163 | | - | |
| 152 | + | |
164 | 153 | | |
165 | 154 | | |
166 | 155 | | |
| |||
169 | 158 | | |
170 | 159 | | |
171 | 160 | | |
172 | | - | |
173 | | - | |
| 161 | + | |
174 | 162 | | |
175 | 163 | | |
176 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
| |||
113 | 112 | | |
114 | 113 | | |
115 | 114 | | |
116 | | - | |
| 115 | + | |
117 | 116 | | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | 122 | | |
131 | 123 | | |
132 | 124 | | |
133 | | - | |
| 125 | + | |
134 | 126 | | |
135 | 127 | | |
136 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
836 | 836 | | |
837 | 837 | | |
838 | 838 | | |
839 | | - | |
| 839 | + | |
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
| |||
1444 | 1444 | | |
1445 | 1445 | | |
1446 | 1446 | | |
1447 | | - | |
| 1447 | + | |
1448 | 1448 | | |
1449 | 1449 | | |
1450 | 1450 | | |
1451 | | - | |
1452 | 1451 | | |
1453 | 1452 | | |
1454 | 1453 | | |
| |||
0 commit comments