forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7c0eb3c
committed
Tighten up parsing logic in gen_node_support.pl.
Teach this script to handle function pointer fields honestly.Previously they were just silently ignored, but that's not likely tobe a behavior we can accept indefinitely. This mostly entails fixingit so that a field declaration spanning multiple lines can be parsed,because we have a bunch of such fields that're laid out that way.But that's a good improvement in its own right.With that change and a minor regex adjustment, the only struct itfails to parse in the node-defining headers is A_Const, becauseof the embedded union. The path of least resistance is to movethat union declaration outside the struct.Having done those things, we can make it error out if it findsany within-struct syntax it doesn't understand, which seems likea pretty important property for robustness.This commit doesn't change the output files at all; it's just inthe way of future-proofing.Discussion:https://postgr.es/m/2593369.1657759779@sss.pgh.pa.us1 parent5794491 commit7c0eb3c
File tree
3 files changed
+90
-20
lines changed- src
- backend/nodes
- include/nodes
3 files changed
+90
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
| 217 | + | |
217 | 218 | | |
218 | 219 | | |
| 220 | + | |
219 | 221 | | |
220 | 222 | | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
224 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
225 | 249 | | |
226 | 250 | | |
227 | 251 | | |
| |||
394 | 418 | | |
395 | 419 | | |
396 | 420 | | |
397 | | - | |
| 421 | + | |
398 | 422 | | |
399 | 423 | | |
400 | 424 | | |
| |||
441 | 465 | | |
442 | 466 | | |
443 | 467 | | |
444 | | - | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
445 | 472 | | |
446 | 473 | | |
447 | 474 | | |
448 | | - | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
449 | 500 | | |
450 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
451 | 508 | | |
452 | 509 | | |
453 | 510 | | |
| |||
709 | 766 | | |
710 | 767 | | |
711 | 768 | | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
712 | 775 | | |
713 | 776 | | |
714 | 777 | | |
| |||
980 | 1043 | | |
981 | 1044 | | |
982 | 1045 | | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
983 | 1052 | | |
984 | 1053 | | |
985 | 1054 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
306 | 309 | | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
307 | 320 | | |
308 | 321 | | |
309 | 322 | | |
310 | 323 | | |
311 | 324 | | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1098 | 1098 | | |
1099 | 1099 | | |
1100 | 1100 | | |
1101 | | - | |
| 1101 | + | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
| |||
1111 | 1111 | | |
1112 | 1112 | | |
1113 | 1113 | | |
| 1114 | + | |
1114 | 1115 | | |
1115 | | - | |
| 1116 | + | |
1116 | 1117 | | |
1117 | 1118 | | |
1118 | 1119 | | |
| |||
0 commit comments
Comments
(0)