forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitfbd26d6
committed
Arrange that no database accesses are attempted during parser() --- this
took some rejiggering of typename and ACL parsing, as well as movingparse_analyze call out of parser(). Restructure postgres.c processingso that parse analysis and rewrite are skipped when in abort-transactionstate. Only COMMIT and ABORT statements will be processed beyond the rawparser() phase. This addresses problem of parser failing with database accesserrors while in aborted state (see pghackers discussions around 7/28/00).Also fix some bugs with COMMIT/ABORT statements appearing in the middle ofa single query input string.Function, operator, and aggregate arguments/results can now use fullTypeName production, in particular foo[] for array types.DROP OPERATOR and COMMENT ON OPERATOR were broken for unary operators.Allow CREATE AGGREGATE to accept unquoted numeric constants for initcond.1 parent4837270 commitfbd26d6
File tree
20 files changed
+768
-750
lines changed- src
- backend
- catalog
- commands
- nodes
- parser
- tcop
- utils/adt
- include
- commands
- nodes
- parser
- tcop
- utils
20 files changed
+768
-750
lines changedLines changed: 12 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
93 | 93 |
| |
94 | 94 |
| |
95 | 95 |
| |
96 |
| - | |
| 96 | + | |
| 97 | + | |
97 | 98 |
| |
98 | 99 |
| |
99 | 100 |
| |
100 | 101 |
| |
101 | 102 |
| |
102 |
| - | |
| 103 | + | |
103 | 104 |
| |
104 | 105 |
| |
105 | 106 |
| |
106 |
| - | |
| 107 | + | |
107 | 108 |
| |
108 | 109 |
| |
109 | 110 |
| |
110 |
| - | |
| 111 | + | |
111 | 112 |
| |
112 | 113 |
| |
113 |
| - | |
114 | 114 |
| |
115 |
| - | |
116 |
| - | |
117 |
| - | |
| 115 | + | |
118 | 116 |
| |
119 |
| - | |
120 | 117 |
| |
121 |
| - | |
122 |
| - | |
| 118 | + | |
123 | 119 |
| |
124 | 120 |
| |
| 121 | + | |
| 122 | + | |
| 123 | + | |
125 | 124 |
| |
126 | 125 |
| |
127 | 126 |
| |
| |||
178 | 177 |
| |
179 | 178 |
| |
180 | 179 |
| |
181 |
| - | |
| 180 | + | |
182 | 181 |
| |
183 | 182 |
| |
184 | 183 |
| |
| |||
194 | 193 |
| |
195 | 194 |
| |
196 | 195 |
| |
197 |
| - | |
198 | 196 |
| |
199 | 197 |
| |
200 |
| - | |
201 | 198 |
| |
202 | 199 |
| |
203 | 200 |
| |
| |||
212 | 209 |
| |
213 | 210 |
| |
214 | 211 |
| |
215 |
| - | |
216 | 212 |
| |
217 | 213 |
| |
218 | 214 |
| |
|
Lines changed: 36 additions & 32 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| 28 | + | |
| 29 | + | |
28 | 30 |
| |
29 | 31 |
| |
30 | 32 |
| |
| |||
46 | 48 |
| |
47 | 49 |
| |
48 | 50 |
| |
49 |
| - | |
| 51 | + | |
50 | 52 |
| |
51 | 53 |
| |
52 | 54 |
| |
| |||
92 | 94 |
| |
93 | 95 |
| |
94 | 96 |
| |
95 |
| - | |
| 97 | + | |
96 | 98 |
| |
97 | 99 |
| |
98 | 100 |
| |
| |||
544 | 546 |
| |
545 | 547 |
| |
546 | 548 |
| |
547 |
| - | |
| 549 | + | |
548 | 550 |
| |
549 |
| - | |
| 551 | + | |
| 552 | + | |
550 | 553 |
| |
551 | 554 |
| |
552 | 555 |
| |
553 | 556 |
| |
554 | 557 |
| |
555 | 558 |
| |
556 | 559 |
| |
557 |
| - | |
| 560 | + | |
558 | 561 |
| |
559 |
| - | |
| 562 | + | |
| 563 | + | |
560 | 564 |
| |
561 |
| - | |
| 565 | + | |
562 | 566 |
| |
563 | 567 |
| |
564 | 568 |
| |
| |||
568 | 572 |
| |
569 | 573 |
| |
570 | 574 |
| |
571 |
| - | |
| 575 | + | |
572 | 576 |
| |
573 | 577 |
| |
574 |
| - | |
| 578 | + | |
575 | 579 |
| |
576 | 580 |
| |
577 | 581 |
| |
| |||
587 | 591 |
| |
588 | 592 |
| |
589 | 593 |
| |
590 |
| - | |
| 594 | + | |
591 | 595 |
| |
592 | 596 |
| |
593 |
| - | |
| 597 | + | |
594 | 598 |
| |
595 | 599 |
| |
596 | 600 |
| |
| |||
622 | 626 |
| |
623 | 627 |
| |
624 | 628 |
| |
625 |
| - | |
626 | 629 |
| |
627 | 630 |
| |
628 | 631 |
| |
| |||
635 | 638 |
| |
636 | 639 |
| |
637 | 640 |
| |
638 |
| - | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
639 | 644 |
| |
640 |
| - | |
641 |
| - | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
642 | 648 |
| |
643 | 649 |
| |
644 | 650 |
| |
645 |
| - | |
| 651 | + | |
646 | 652 |
| |
647 | 653 |
| |
648 |
| - | |
649 |
| - | |
| 654 | + | |
650 | 655 |
| |
651 | 656 |
| |
652 | 657 |
| |
| |||
664 | 669 |
| |
665 | 670 |
| |
666 | 671 |
| |
667 |
| - | |
668 | 672 |
| |
669 |
| - | |
670 |
| - | |
| 673 | + | |
| 674 | + | |
671 | 675 |
| |
672 | 676 |
| |
673 | 677 |
| |
| |||
691 | 695 |
| |
692 | 696 |
| |
693 | 697 |
| |
694 |
| - | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
695 | 703 |
| |
696 | 704 |
| |
697 | 705 |
| |
698 | 706 |
| |
699 | 707 |
| |
700 | 708 |
| |
701 |
| - | |
702 |
| - | |
703 |
| - | |
704 | 709 |
| |
705 | 710 |
| |
706 | 711 |
| |
707 |
| - | |
708 |
| - | |
709 |
| - | |
710 |
| - | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
711 | 716 |
| |
712 | 717 |
| |
713 | 718 |
| |
| |||
732 | 737 |
| |
733 | 738 |
| |
734 | 739 |
| |
735 |
| - | |
736 |
| - | |
737 | 740 |
| |
| 741 | + | |
| 742 | + | |
738 | 743 |
| |
739 | 744 |
| |
740 | 745 |
| |
| |||
769 | 774 |
| |
770 | 775 |
| |
771 | 776 |
| |
772 |
| - | |
773 | 777 |
| |
774 | 778 |
| |
775 | 779 |
| |
|
0 commit comments
Comments
(0)