- Notifications
You must be signed in to change notification settings - Fork28
Commita044e2a
committed
Rule rewriter was doing the wrong thing with conditional INSTEAD rules
whose conditions might yield NULL. The negated qual to attach to theoriginal query is properly 'x IS NOT TRUE', not 'NOT x'. This fixproduces correct behavior, but we may be taking a performance hit becausethe planner is much stupider about IS NOT TRUE than it is about NOTclauses. Future TODO: teach prepqual, other parts of planner how tocope with BooleanTest clauses more effectively.1 parent6d6b582 commita044e2a
File tree
3 files changed
+29
-35
lines changed- src
- backend/rewrite
- include/rewrite
3 files changed
+29
-35
lines changedLines changed: 15 additions & 13 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 |
| |
| |||
842 | 842 |
| |
843 | 843 |
| |
844 | 844 |
| |
845 |
| - | |
846 |
| - | |
847 |
| - | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
848 | 850 |
| |
849 | 851 |
| |
850 | 852 |
| |
| |||
853 | 855 |
| |
854 | 856 |
| |
855 | 857 |
| |
856 |
| - | |
857 |
| - | |
858 |
| - | |
859 |
| - | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
860 | 862 |
| |
861 | 863 |
| |
862 | 864 |
| |
| |||
872 | 874 |
| |
873 | 875 |
| |
874 | 876 |
| |
875 |
| - | |
| 877 | + | |
876 | 878 |
| |
877 | 879 |
| |
878 | 880 |
| |
| |||
956 | 958 |
| |
957 | 959 |
| |
958 | 960 |
| |
959 |
| - | |
960 |
| - | |
961 |
| - | |
962 |
| - | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
963 | 965 |
| |
964 | 966 |
| |
965 | 967 |
| |
|
Lines changed: 12 additions & 20 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 |
| |
| |||
690 | 690 |
| |
691 | 691 |
| |
692 | 692 |
| |
693 |
| - | |
694 |
| - | |
695 |
| - | |
696 |
| - | |
697 |
| - | |
698 |
| - | |
699 |
| - | |
700 |
| - | |
701 |
| - | |
702 |
| - | |
703 |
| - | |
704 |
| - | |
705 |
| - | |
706 |
| - | |
707 |
| - | |
708 | 693 |
| |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
709 | 699 |
| |
710 |
| - | |
| 700 | + | |
711 | 701 |
| |
712 |
| - | |
| 702 | + | |
713 | 703 |
| |
714 | 704 |
| |
715 | 705 |
| |
716 | 706 |
| |
717 | 707 |
| |
718 |
| - | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
719 | 711 |
| |
720 |
| - | |
| 712 | + | |
721 | 713 |
| |
722 | 714 |
| |
723 | 715 |
| |
|
Lines changed: 2 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 |
| |
| |||
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
35 |
| - | |
| 35 | + | |
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
|
0 commit comments
Comments
(0)