forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf4abd02
committed
Support flattening of empty-FROM subqueries and one-row VALUES tables.
We can't handle this in the general case due to limitations of theplanner's data representations; but we can allow it in many useful cases,by being careful to flatten only when we are pulling a single-row subqueryup into a FROM (or, equivalently, inner JOIN) node that will still have atleast one remaining relation child. Per discussion of an example fromKyotaro Horiguchi.1 parentb746d0c commitf4abd02
File tree
9 files changed
+466
-71
lines changed- src
- backend
- nodes
- optimizer
- plan
- prep
- include
- nodes
- optimizer
- test/regress
- expected
- sql
9 files changed
+466
-71
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1762 | 1762 |
| |
1763 | 1763 |
| |
1764 | 1764 |
| |
| 1765 | + | |
1765 | 1766 |
| |
1766 | 1767 |
| |
1767 | 1768 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
352 | 352 |
| |
353 | 353 |
| |
354 | 354 |
| |
355 |
| - | |
356 |
| - | |
| 355 | + | |
357 | 356 |
| |
358 | 357 |
| |
359 | 358 |
| |
|
0 commit comments
Comments
(0)