forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3b1a7eb
committed
Don't zero tuple_fraction when planning UNIONs with ORDER BYs
Since66c0185, the planner is able to use Merge Append -> Unique toimplement UNION queries and each subquery is prompted to produce Pathscorrectly sorted by the UNION's targetlist.Here we remove some now redundant code which was zeroing thetuple_fraction at the parent level. This will allow the planner toconsider cheap startup paths when planning the UNION's subqueries.EXCEPT and INTERSECT set operations still have the tuple_fraction zeroedin generate_nonunion_paths(). These operations currently always readall of their subqueries' tuples.Reported-by: Tom LaneDiscussion:https://postgr.es/m/3703023.1711654574@sss.pgh.pa.us1 parent06c418e commit3b1a7eb
1 file changed
+0
-11
lines changedLines changed: 0 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1338 | 1338 |
| |
1339 | 1339 |
| |
1340 | 1340 |
| |
1341 |
| - | |
1342 |
| - | |
1343 |
| - | |
1344 |
| - | |
1345 |
| - | |
1346 |
| - | |
1347 |
| - | |
1348 |
| - | |
1349 |
| - | |
1350 |
| - | |
1351 |
| - | |
1352 | 1341 |
| |
1353 | 1342 |
| |
1354 | 1343 |
| |
|
0 commit comments
Comments
(0)