- Notifications
You must be signed in to change notification settings - Fork28
Commit8b6d6cf
committed
Remove objname/objargs split for referring to objects
In simpler times, it might have worked to refer to all kinds of objectsby a list of name components and an optional argument list. But thisdoesn't work for all objects, which has resulted in a collection ofhacks to place various other nodes types into these fields, which haveto be unpacked at the other end. This makes it also weird to representlists of such things in the grammar, because they would have to be listsof singleton lists, to make the unpacking work consistently. The otherproblem is that keeping separate name and args fields makes it awkwardto deal with lists of functions.Change that by dropping the objargs field and have objname, renamed toobject, be a generic Node, which can then be flexibly assigned andmanaged using the normal Node mechanisms. In many cases it will stillbe a List of names, in some cases it will be a string Value, for typesit will be the existing Typename, for functions it will now use theexisting ObjectWithArgs node type. Some of the more obscure objecttypes still use somewhat arbitrary nested lists.Reviewed-by: Jim Nasby <Jim.Nasby@BlueTreble.com>Reviewed-by: Michael Paquier <michael.paquier@gmail.com>1 parent550214a commit8b6d6cf
File tree
18 files changed
+610
-635
lines changed- src
- backend
- catalog
- commands
- nodes
- parser
- include
- catalog
- commands
- nodes
- test/regress
- expected
- sql
18 files changed
+610
-635
lines changedLines changed: 246 additions & 201 deletions
Large diffs are not rendered by default.
Lines changed: 16 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
385 | 385 |
| |
386 | 386 |
| |
387 | 387 |
| |
388 |
| - | |
| 388 | + | |
389 | 389 |
| |
390 | 390 |
| |
391 | 391 |
| |
| |||
421 | 421 |
| |
422 | 422 |
| |
423 | 423 |
| |
424 |
| - | |
425 |
| - | |
| 424 | + | |
| 425 | + | |
426 | 426 |
| |
427 | 427 |
| |
428 | 428 |
| |
| |||
431 | 431 |
| |
432 | 432 |
| |
433 | 433 |
| |
434 |
| - | |
435 |
| - | |
| 434 | + | |
| 435 | + | |
436 | 436 |
| |
437 | 437 |
| |
438 | 438 |
| |
| |||
461 | 461 |
| |
462 | 462 |
| |
463 | 463 |
| |
464 |
| - | |
| 464 | + | |
465 | 465 |
| |
466 | 466 |
| |
467 | 467 |
| |
| |||
476 | 476 |
| |
477 | 477 |
| |
478 | 478 |
| |
479 |
| - | |
| 479 | + | |
480 | 480 |
| |
481 | 481 |
| |
482 | 482 |
| |
| |||
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
504 |
| - | |
505 | 504 |
| |
506 | 505 |
| |
507 | 506 |
| |
| |||
764 | 763 |
| |
765 | 764 |
| |
766 | 765 |
| |
767 |
| - | |
| 766 | + | |
768 | 767 |
| |
769 | 768 |
| |
770 |
| - | |
| 769 | + | |
771 | 770 |
| |
772 | 771 |
| |
773 | 772 |
| |
774 |
| - | |
| 773 | + | |
| 774 | + | |
775 | 775 |
| |
776 | 776 |
| |
777 |
| - | |
| 777 | + | |
778 | 778 |
| |
779 | 779 |
| |
780 | 780 |
| |
781 |
| - | |
| 781 | + | |
782 | 782 |
| |
783 | 783 |
| |
784 | 784 |
| |
785 |
| - | |
| 785 | + | |
786 | 786 |
| |
787 | 787 |
| |
788 | 788 |
| |
789 |
| - | |
| 789 | + | |
790 | 790 |
| |
791 | 791 |
| |
792 | 792 |
| |
793 |
| - | |
| 793 | + | |
794 | 794 |
| |
795 | 795 |
| |
796 | 796 |
| |
| |||
814 | 814 |
| |
815 | 815 |
| |
816 | 816 |
| |
817 |
| - | |
818 | 817 |
| |
819 | 818 |
| |
820 | 819 |
| |
|
Lines changed: 5 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
51 |
| - | |
52 |
| - | |
| 51 | + | |
53 | 52 |
| |
54 |
| - | |
| 53 | + | |
55 | 54 |
| |
56 |
| - | |
| 55 | + | |
57 | 56 |
| |
58 | 57 |
| |
59 | 58 |
| |
| |||
70 | 69 |
| |
71 | 70 |
| |
72 | 71 |
| |
73 |
| - | |
| 72 | + | |
74 | 73 |
| |
75 | 74 |
| |
76 | 75 |
| |
77 | 76 |
| |
78 |
| - | |
| 77 | + | |
79 | 78 |
| |
80 | 79 |
| |
81 | 80 |
| |
|
0 commit comments
Comments
(0)