forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9d91db4
committed
Repair bug reported by Wickstrom: backend would crash if WHERE clause
contained a sub-SELECT nested within an AND/OR tree that cnfify()thought it should rearrange. Same physical sub-SELECT node couldend up linked into multiple places in resulting expression tree.This is harmless for most node types, but not for SubLink.Repair bug by making physical copies of subexpressions that getlogically duplicated by cnfify(). Also, tweak the heuristic thatdecides whether it's a good idea to do cnfify() --- we don't reallywant that to happen when it would cause multiple copies of a subselectto be generated, I think.1 parent2e67eca commit9d91db4
2 files changed
+51
-11
lines changedLines changed: 9 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
136 | 136 |
| |
137 | 137 |
| |
138 | 138 |
| |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
139 | 146 |
| |
140 | 147 |
| |
141 | 148 |
| |
| |||
194 | 201 |
| |
195 | 202 |
| |
196 | 203 |
| |
197 |
| - | |
| 204 | + | |
198 | 205 |
| |
199 | 206 |
| |
200 | 207 |
| |
|
Lines changed: 42 additions & 9 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 |
| |
| |||
656 | 656 |
| |
657 | 657 |
| |
658 | 658 |
| |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
659 | 672 |
| |
660 | 673 |
| |
661 | 674 |
| |
662 | 675 |
| |
663 |
| - | |
664 |
| - | |
665 |
| - | |
| 676 | + | |
666 | 677 |
| |
667 |
| - | |
| 678 | + | |
668 | 679 |
| |
669 | 680 |
| |
670 | 681 |
| |
| |||
773 | 784 |
| |
774 | 785 |
| |
775 | 786 |
| |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
776 | 800 |
| |
777 | 801 |
| |
778 | 802 |
| |
779 | 803 |
| |
780 |
| - | |
781 |
| - | |
782 |
| - | |
| 804 | + | |
783 | 805 |
| |
784 |
| - | |
| 806 | + | |
785 | 807 |
| |
786 | 808 |
| |
787 | 809 |
| |
| |||
932 | 954 |
| |
933 | 955 |
| |
934 | 956 |
| |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
935 | 968 |
| |
936 | 969 |
| |
937 | 970 |
| |
|
0 commit comments
Comments
(0)