forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commiteae0e20
committed
Remove over-optimistic Assert.
In commit2489d76, I'd thought it'd be safe to assert that aPlaceHolderVar appearing in a scan-level expression has emptynullingrels. However this is not so, as when we determine that ajoin relation is certainly empty we'll put its targetlist into aResult-with-constant-false-qual node, and nothing is done to adjustthe nullingrels of the Vars or PHVs therein. (Arguably, a Resultused in this way isn't really a scan-level node, but it certainlyisn't an upper node either ...)It's not clear this is worth any close analysis, so let's justtake out the faulty Assert.Per report from Robins Tharakan. I added a test case based onhis example, just in case somebody tries to tighten this up.Discussion:https://postgr.es/m/CAEP4nAz7Enq3+DEthGG7j27DpuwSRZnW0Nh6jtNh75yErQ_nbA@mail.gmail.com1 parent3db72eb commiteae0e20
3 files changed
+23
-1
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2205 | 2205 |
| |
2206 | 2206 |
| |
2207 | 2207 |
| |
2208 |
| - | |
| 2208 | + | |
2209 | 2209 |
| |
2210 | 2210 |
| |
2211 | 2211 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3599 | 3599 |
| |
3600 | 3600 |
| |
3601 | 3601 |
| |
| 3602 | + | |
| 3603 | + | |
| 3604 | + | |
| 3605 | + | |
| 3606 | + | |
| 3607 | + | |
| 3608 | + | |
| 3609 | + | |
| 3610 | + | |
| 3611 | + | |
| 3612 | + | |
| 3613 | + | |
| 3614 | + | |
| 3615 | + | |
3602 | 3616 |
| |
3603 | 3617 |
| |
3604 | 3618 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1181 | 1181 |
| |
1182 | 1182 |
| |
1183 | 1183 |
| |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
| 1189 | + | |
| 1190 | + | |
| 1191 | + | |
1184 | 1192 |
| |
1185 | 1193 |
| |
1186 | 1194 |
| |
|
0 commit comments
Comments
(0)