- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitdea1491
committed
Teach predtest.c that "foo" implies "foo IS NOT NULL".
Per complaint from Peter Holzer. It's useful to cover this special case,since for a boolean variable "foo", earlier parts of the planner will havereduced variants like "foo = true" to just "foo", and thus we may failto recognize the applicability of a partial index with predicate"foo IS NOT NULL".Back-patch to 9.5, but not further; given the lack of previous complaintsthis doesn't seem like behavior to change in stable branches.1 parenta6492ff commitdea1491
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1028 | 1028 |
| |
1029 | 1029 |
| |
1030 | 1030 |
| |
| 1031 | + | |
| 1032 | + | |
1031 | 1033 |
| |
1032 | 1034 |
| |
1033 | 1035 |
| |
| |||
1061 | 1063 |
| |
1062 | 1064 |
| |
1063 | 1065 |
| |
| 1066 | + | |
| 1067 | + | |
1064 | 1068 |
| |
1065 | 1069 |
| |
1066 | 1070 |
| |
|
0 commit comments
Comments
(0)