- Notifications
You must be signed in to change notification settings - Fork28
Commit3396138
committed
Check we don't misoptimize a NOT IN where the subquery returns no rows.
Future-proofing against a common mistake in attempts to optimize NOT IN.We don't have such an optimization right now, but attempts to do soare in the works, and some of 'em are buggy. Add a regression test casecovering the point.David RowleyDiscussion:https://postgr.es/m/CAKJS1f90E9agVZryVyUpbHQbjTt5ExqS2Fsodmt5_A7E_cEyVA@mail.gmail.com1 parent65ce07e commit3396138
2 files changed
+22
-0
lines changedLines changed: 13 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
830 | 830 |
| |
831 | 831 |
| |
832 | 832 |
| |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
833 | 846 |
| |
834 | 847 |
| |
835 | 848 |
| |
|
Lines changed: 9 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
466 | 466 |
| |
467 | 467 |
| |
468 | 468 |
| |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
469 | 478 |
| |
470 | 479 |
| |
471 | 480 |
| |
|
0 commit comments
Comments
(0)