forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd35a1af
committed
Convert range_in and multirange_in to report errors softly.
This is mostly straightforward, except that if the range typehas a canonical function, that might throw an error during rangeinput. (Such errors probably only occur for edge cases: in thein-core canonical functions, it happens only if a bound has themaximum valid value for the underlying type.) Hence, this patchextends the soft-error regime to allow canonical functions toreturn errors softly as well. Extensions implementing rangecanonical functions will need modification anyway because of theAPI change for range_serialize(); while at it, they might wantto do something similar to what's been done here in the in-corecanonical functions.Discussion:https://postgr.es/m/3284599.1671075185@sss.pgh.pa.us1 parent75f4922 commitd35a1af
File tree
12 files changed
+289
-66
lines changed- src
- backend/utils/adt
- include/utils
- test/regress
- expected
- sql
12 files changed
+289
-66
lines changedLines changed: 18 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
| 123 | + | |
123 | 124 |
| |
124 | 125 |
| |
125 | 126 |
| |
| |||
133 | 134 |
| |
134 | 135 |
| |
135 | 136 |
| |
| 137 | + | |
136 | 138 |
| |
137 | 139 |
| |
138 | 140 |
| |
| |||
144 | 146 |
| |
145 | 147 |
| |
146 | 148 |
| |
147 |
| - | |
| 149 | + | |
148 | 150 |
| |
149 | 151 |
| |
150 | 152 |
| |
| |||
157 | 159 |
| |
158 | 160 |
| |
159 | 161 |
| |
160 |
| - | |
| 162 | + | |
161 | 163 |
| |
162 | 164 |
| |
163 | 165 |
| |
| |||
186 | 188 |
| |
187 | 189 |
| |
188 | 190 |
| |
189 |
| - | |
| 191 | + | |
190 | 192 |
| |
191 | 193 |
| |
192 | 194 |
| |
| |||
204 | 206 |
| |
205 | 207 |
| |
206 | 208 |
| |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
211 | 217 |
| |
212 | 218 |
| |
213 | 219 |
| |
| |||
256 | 262 |
| |
257 | 263 |
| |
258 | 264 |
| |
259 |
| - | |
| 265 | + | |
260 | 266 |
| |
261 | 267 |
| |
262 | 268 |
| |
| |||
280 | 286 |
| |
281 | 287 |
| |
282 | 288 |
| |
283 |
| - | |
| 289 | + | |
284 | 290 |
| |
285 | 291 |
| |
286 | 292 |
| |
| |||
807 | 813 |
| |
808 | 814 |
| |
809 | 815 |
| |
810 |
| - | |
| 816 | + | |
811 | 817 |
| |
812 | 818 |
| |
813 | 819 |
| |
| |||
2696 | 2702 |
| |
2697 | 2703 |
| |
2698 | 2704 |
| |
2699 |
| - | |
| 2705 | + | |
| 2706 | + | |
2700 | 2707 |
| |
2701 | 2708 |
| |
2702 | 2709 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
221 | 221 |
| |
222 | 222 |
| |
223 | 223 |
| |
224 |
| - | |
| 224 | + | |
| 225 | + | |
225 | 226 |
| |
226 | 227 |
| |
227 | 228 |
| |
|
0 commit comments
Comments
(0)