forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4c2d3cc
committed
Add a caveat pointing out that constraint exclusion doesn't work with
constraints the planner is unable to disprove, hence simple btree-compatibleconditions should be used. We've seen people try to get cute with stufflike date_part(something) = something at least twice now. Even if wewanted to try to teach predtest.c about the properties of date_part,most of the useful variants aren't immutable so nothing could be proved.1 parent8f3d077 commit4c2d3cc
1 file changed
+17
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
2778 | 2778 | | |
2779 | 2779 | | |
2780 | 2780 | | |
2781 | | - | |
| 2781 | + | |
2782 | 2782 | | |
2783 | 2783 | | |
2784 | 2784 | | |
| |||
2787 | 2787 | | |
2788 | 2788 | | |
2789 | 2789 | | |
2790 | | - | |
2791 | | - | |
2792 | | - | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
2793 | 2805 | | |
2794 | 2806 | | |
2795 | 2807 | | |
| |||
0 commit comments
Comments
(0)