forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit43ac12c
committed
In type_sanity, check I/O functions of built-in types are not volatile.
We have a project policy that I/O functions must not be volatile, as percommitaab353a, but we weren't doinganything to enforce that. In most usage the marking of the functiondoesn't matter as long as its behavior is sane --- but I/O casts canexpose the marking as user-visible behavior, as per today's complaintfrom Joe Van Dyk about contrib/ltree.This test as such will only protect us against future errors in built-indata types. To catch the same error in contrib or third-party types,perhaps we should make CREATE TYPE complain? But that's a separateissue from enforcing the policy for built-in types.1 parentb34d6f0 commit43ac12c
2 files changed
+81
-0
lines changedLines changed: 49 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
158 | 166 |
| |
159 | 167 |
| |
160 | 168 |
| |
| |||
192 | 200 |
| |
193 | 201 |
| |
194 | 202 |
| |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
195 | 211 |
| |
196 | 212 |
| |
197 | 213 |
| |
| |||
262 | 278 |
| |
263 | 279 |
| |
264 | 280 |
| |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
265 | 289 |
| |
266 | 290 |
| |
267 | 291 |
| |
| |||
299 | 323 |
| |
300 | 324 |
| |
301 | 325 |
| |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
302 | 334 |
| |
303 | 335 |
| |
304 | 336 |
| |
| |||
330 | 362 |
| |
331 | 363 |
| |
332 | 364 |
| |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
333 | 373 |
| |
334 | 374 |
| |
335 | 375 |
| |
| |||
341 | 381 |
| |
342 | 382 |
| |
343 | 383 |
| |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
344 | 392 |
| |
345 | 393 |
| |
346 | 394 |
| |
| |||
379 | 427 |
| |
380 | 428 |
| |
381 | 429 |
| |
| 430 | + | |
382 | 431 |
| |
383 | 432 |
| |
384 | 433 |
| |
|
Lines changed: 32 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
125 | 130 |
| |
126 | 131 |
| |
127 | 132 |
| |
| |||
146 | 151 |
| |
147 | 152 |
| |
148 | 153 |
| |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
149 | 159 |
| |
150 | 160 |
| |
151 | 161 |
| |
| |||
193 | 203 |
| |
194 | 204 |
| |
195 | 205 |
| |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
196 | 211 |
| |
197 | 212 |
| |
198 | 213 |
| |
| |||
217 | 232 |
| |
218 | 233 |
| |
219 | 234 |
| |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
220 | 240 |
| |
221 | 241 |
| |
222 | 242 |
| |
| |||
237 | 257 |
| |
238 | 258 |
| |
239 | 259 |
| |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
240 | 265 |
| |
241 | 266 |
| |
242 | 267 |
| |
| |||
246 | 271 |
| |
247 | 272 |
| |
248 | 273 |
| |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
249 | 279 |
| |
250 | 280 |
| |
251 | 281 |
| |
| |||
276 | 306 |
| |
277 | 307 |
| |
278 | 308 |
| |
| 309 | + | |
| 310 | + | |
279 | 311 |
| |
280 | 312 |
| |
281 | 313 |
| |
|
0 commit comments
Comments
(0)