forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit992b5ba
committed
Push scan/join target list beneath Gather when possible.
This means that, for example, "SELECT expensive_func(a) FROM bigtabWHERE something" can compute expensive_func(a) in the workers ratherthan the leader if it happens to be parallel-safe, which figures to bea big win in some practical cases.Currently, we can only do this if the entire target list isparallel-safe. If we worked harder, we might be able to evaluateparallel-safe targets in the worker and any parallel-restrictedtargets in the leader, but that would be more complicated, and therearen't that many parallel-restricted functions that people are likelyto use in queries anyway. I think. So just do the simple thing forthe moment.Robert Haas, Amit Kapila, and Tom Lane1 parent2d8a1e2 commit992b5ba
2 files changed
+44
-11
lines changedLines changed: 14 additions & 11 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1396 | 1396 |
| |
1397 | 1397 |
| |
1398 | 1398 |
| |
1399 |
| - | |
1400 |
| - | |
1401 |
| - | |
1402 |
| - | |
1403 |
| - | |
1404 |
| - | |
1405 |
| - | |
1406 |
| - | |
1407 |
| - | |
1408 |
| - | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
1409 | 1411 |
| |
1410 |
| - | |
| 1412 | + | |
| 1413 | + | |
1411 | 1414 |
| |
1412 | 1415 |
| |
1413 | 1416 |
| |
|
Lines changed: 30 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2222 | 2222 |
| |
2223 | 2223 |
| |
2224 | 2224 |
| |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
| 2231 | + | |
| 2232 | + | |
| 2233 | + | |
| 2234 | + | |
| 2235 | + | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
| 2239 | + | |
| 2240 | + | |
| 2241 | + | |
| 2242 | + | |
| 2243 | + | |
| 2244 | + | |
| 2245 | + | |
| 2246 | + | |
| 2247 | + | |
| 2248 | + | |
| 2249 | + | |
| 2250 | + | |
| 2251 | + | |
| 2252 | + | |
| 2253 | + | |
| 2254 | + | |
2225 | 2255 |
| |
2226 | 2256 |
| |
2227 | 2257 |
| |
|
0 commit comments
Comments
(0)