forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit926fa80
committed
Remove undocumented IS [NOT] OF syntax.
This feature was added a long time ago, in7c1e67b andeb121ba,but never documented in any user-facing way. (Documentation addedin6126d3e was commented out almost immediately, in8272fc3.)That's because, while this syntax is defined by SQL:99, ourimplementation is only vaguely related to the standard's semantics.The standard appears to intend a run-time not parse-time test, andit definitely intends that the test should understand subtyperelationships.No one has stepped up to fix that in the intervening years, butpeople keep coming across the code and asking why it's not documented.Let's just get rid of it: if anyone ever wants to make it work perspec, they can easily recover whatever parts of this code are stillof value from our git history.If there's anyone out there who's actually using this despite itsundocumented status, they can switch to using pg_typeof() instead,eg. "pg_typeof(something) = 'mytype'::regtype". That givesessentially the same semantics as what our IS OF code did.(We didn't have that function last time this was discussed, orwe would have ripped out IS OF then.)Discussion:https://postgr.es/m/CAKFQuwZ2pTc-DSkOiTfjauqLYkNREeNZvWmeg12Q-_69D+sYZA@mail.gmail.comDiscussion:https://postgr.es/m/BAY20-F23E9F2B4DAB3E4E88D3623F99B0@phx.gblDiscussion:https://postgr.es/m/3E7CF81D.1000203@joeconway.com1 parent97390fe commit926fa80
File tree
12 files changed
+38
-139
lines changed- doc/src/sgml
- src
- backend
- catalog
- nodes
- parser
- include/nodes
- test/regress
- expected
- sql
12 files changed
+38
-139
lines changedLines changed: 0 additions & 19 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
762 | 762 |
| |
763 | 763 |
| |
764 | 764 |
| |
765 |
| - | |
766 |
| - | |
767 |
| - | |
768 |
| - | |
769 |
| - | |
770 |
| - | |
771 |
| - | |
772 |
| - | |
773 |
| - | |
774 |
| - | |
775 |
| - | |
776 |
| - | |
777 |
| - | |
778 |
| - | |
779 |
| - | |
780 |
| - | |
781 |
| - | |
782 |
| - | |
783 |
| - | |
784 | 765 |
| |
785 | 766 |
| |
786 | 767 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
373 | 373 |
| |
374 | 374 |
| |
375 | 375 |
| |
376 |
| - | |
| 376 | + | |
377 | 377 |
| |
378 | 378 |
| |
379 | 379 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3213 | 3213 |
| |
3214 | 3214 |
| |
3215 | 3215 |
| |
3216 |
| - | |
3217 |
| - | |
3218 |
| - | |
3219 |
| - | |
3220 | 3216 |
| |
3221 | 3217 |
| |
3222 | 3218 |
| |
|
Lines changed: 0 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13238 | 13238 |
| |
13239 | 13239 |
| |
13240 | 13240 |
| |
13241 |
| - | |
13242 |
| - | |
13243 |
| - | |
13244 |
| - | |
13245 |
| - | |
13246 |
| - | |
13247 |
| - | |
13248 |
| - | |
13249 | 13241 |
| |
13250 | 13242 |
| |
13251 | 13243 |
| |
| |||
13464 | 13456 |
| |
13465 | 13457 |
| |
13466 | 13458 |
| |
13467 |
| - | |
13468 |
| - | |
13469 |
| - | |
13470 |
| - | |
13471 |
| - | |
13472 |
| - | |
13473 |
| - | |
13474 |
| - | |
13475 | 13459 |
| |
13476 | 13460 |
| |
13477 | 13461 |
| |
|
Lines changed: 0 additions & 54 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
97 |
| - | |
98 | 97 |
| |
99 | 98 |
| |
100 | 99 |
| |
| |||
228 | 227 |
| |
229 | 228 |
| |
230 | 229 |
| |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 | 230 |
| |
235 | 231 |
| |
236 | 232 |
| |
| |||
1168 | 1164 |
| |
1169 | 1165 |
| |
1170 | 1166 |
| |
1171 |
| - | |
1172 |
| - | |
1173 |
| - | |
1174 |
| - | |
1175 |
| - | |
1176 |
| - | |
1177 |
| - | |
1178 |
| - | |
1179 |
| - | |
1180 |
| - | |
1181 |
| - | |
1182 |
| - | |
1183 |
| - | |
1184 |
| - | |
1185 |
| - | |
1186 |
| - | |
1187 |
| - | |
1188 |
| - | |
1189 |
| - | |
1190 |
| - | |
1191 |
| - | |
1192 |
| - | |
1193 |
| - | |
1194 |
| - | |
1195 |
| - | |
1196 |
| - | |
1197 |
| - | |
1198 |
| - | |
1199 |
| - | |
1200 |
| - | |
1201 |
| - | |
1202 |
| - | |
1203 |
| - | |
1204 |
| - | |
1205 |
| - | |
1206 |
| - | |
1207 |
| - | |
1208 |
| - | |
1209 |
| - | |
1210 |
| - | |
1211 |
| - | |
1212 |
| - | |
1213 |
| - | |
1214 |
| - | |
1215 |
| - | |
1216 | 1167 |
| |
1217 | 1168 |
| |
1218 | 1169 |
| |
| |||
3257 | 3208 |
| |
3258 | 3209 |
| |
3259 | 3210 |
| |
3260 |
| - | |
3261 |
| - | |
3262 |
| - | |
3263 |
| - | |
3264 |
| - | |
3265 | 3211 |
| |
3266 | 3212 |
| |
3267 | 3213 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
261 |
| - | |
262 | 261 |
| |
263 | 262 |
| |
264 | 263 |
| |
|
Lines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1149 | 1149 |
| |
1150 | 1150 |
| |
1151 | 1151 |
| |
1152 |
| - | |
1153 |
| - | |
1154 |
| - | |
1155 |
| - | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
1156 | 1156 |
| |
1157 | 1157 |
| |
1158 | 1158 |
| |
| |||
1161 | 1161 |
| |
1162 | 1162 |
| |
1163 | 1163 |
| |
1164 |
| - | |
1165 |
| - | |
1166 |
| - | |
1167 |
| - | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
1168 | 1168 |
| |
1169 | 1169 |
| |
1170 | 1170 |
| |
|
Lines changed: 8 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
70 | 70 |
| |
71 | 71 |
| |
72 | 72 |
| |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
83 | 77 |
| |
84 | 78 |
| |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
89 | 83 |
| |
90 | 84 |
| |
91 | 85 |
| |
|
Lines changed: 14 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
142 | 142 |
| |
143 | 143 |
| |
144 | 144 |
| |
145 |
| - | |
146 |
| - | |
147 |
| - | |
148 |
| - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
149 | 149 |
| |
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
156 |
| - | |
157 |
| - | |
158 |
| - | |
159 |
| - | |
160 |
| - | |
161 |
| - | |
162 |
| - | |
163 |
| - | |
164 |
| - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
165 | 165 |
| |
166 | 166 |
| |
167 | 167 |
| |
| |||
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
174 |
| - | |
| 174 | + | |
175 | 175 |
| |
176 | 176 |
| |
177 | 177 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
343 | 343 |
| |
344 | 344 |
| |
345 | 345 |
| |
346 |
| - | |
| 346 | + | |
347 | 347 |
| |
348 |
| - | |
| 348 | + | |
349 | 349 |
| |
350 | 350 |
| |
351 | 351 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
62 |
| - | |
63 |
| - | |
64 |
| - | |
| 62 | + | |
| 63 | + | |
65 | 64 |
| |
66 | 65 |
| |
67 | 66 |
| |
|
Lines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 |
| - | |
| 80 | + | |
81 | 81 |
| |
82 | 82 |
| |
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
86 | 86 |
| |
87 |
| - | |
| 87 | + | |
88 | 88 |
| |
89 | 89 |
| |
90 | 90 |
| |
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 |
| - | |
| 96 | + | |
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
|
0 commit comments
Comments
(0)