forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit27e1f14

Etsuro Fujita
Add support for asynchronous execution.
This implements asynchronous execution, which runs multiple parts of anon-parallel-aware Append concurrently rather than serially to improveperformance when possible. Currently, the only node type that can berun concurrently is a ForeignScan that is an immediate child of such anAppend. In the case where such ForeignScans access data on differentremote servers, this would run those ForeignScans concurrently, andoverlap the remote operations to be performed simultaneously, so it'llimprove the performance especially when the operations involvetime-consuming ones such as remote join and remote aggregation.We may extend this to other node types such as joins or aggregates overForeignScans in the future.This also adds the support for postgres_fdw, which is enabled by thetable-level/server-level option "async_capable". The default is false.Robert Haas, Kyotaro Horiguchi, Thomas Munro, and myself. This commitis mostly based on the patch proposed by Robert Haas, but also usesstuff from the patch proposed by Kyotaro Horiguchi and from the patchproposed by Thomas Munro. Reviewed by Kyotaro Horiguchi, KonstantinKnizhnik, Andrey Lepikhov, Movead Li, Thomas Munro, Justin Pryzby, andothers.Discussion:https://postgr.es/m/CA%2BTgmoaXQEt4tZ03FtQhnzeDEMzBck%2BLrni0UWHVVgOTnA6C1w%40mail.gmail.comDiscussion:https://postgr.es/m/CA%2BhUKGLBRyu0rHrDCMC4%3DRn3252gogyp1SjOgG8SEKKZv%3DFwfQ%40mail.gmail.comDiscussion:https://postgr.es/m/20200228.170650.667613673625155850.horikyota.ntt%40gmail.com1 parent66392d3 commit27e1f14
File tree
39 files changed
+2068
-57
lines changed- contrib/postgres_fdw
- expected
- sql
- doc/src/sgml
- src
- backend
- commands
- executor
- nodes
- optimizer
- path
- plan
- postmaster
- storage/ipc
- utils/misc
- include
- executor
- foreign
- nodes
- optimizer
- storage
- test/regress/expected
39 files changed
+2068
-57
lines changedLines changed: 24 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
| 65 | + | |
65 | 66 |
| |
66 | 67 |
| |
67 | 68 |
| |
| |||
115 | 116 |
| |
116 | 117 |
| |
117 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
118 | 122 |
| |
119 | 123 |
| |
120 |
| - | |
| 124 | + | |
121 | 125 |
| |
122 | 126 |
| |
123 | 127 |
| |
| |||
196 | 200 |
| |
197 | 201 |
| |
198 | 202 |
| |
| 203 | + | |
| 204 | + | |
| 205 | + | |
199 | 206 |
| |
200 | 207 |
| |
201 | 208 |
| |
| |||
264 | 271 |
| |
265 | 272 |
| |
266 | 273 |
| |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
267 | 278 |
| |
268 | 279 |
| |
269 | 280 |
| |
| |||
291 | 302 |
| |
292 | 303 |
| |
293 | 304 |
| |
| 305 | + | |
294 | 306 |
| |
295 | 307 |
| |
296 | 308 |
| |
| |||
648 | 660 |
| |
649 | 661 |
| |
650 | 662 |
| |
651 |
| - | |
| 663 | + | |
652 | 664 |
| |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
653 | 669 |
| |
654 | 670 |
| |
655 | 671 |
| |
| |||
940 | 956 |
| |
941 | 957 |
| |
942 | 958 |
| |
| 959 | + | |
| 960 | + | |
943 | 961 |
| |
944 | 962 |
| |
945 | 963 |
| |
| |||
1172 | 1190 |
| |
1173 | 1191 |
| |
1174 | 1192 |
| |
| 1193 | + | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
1175 | 1197 |
| |
1176 | 1198 |
| |
1177 | 1199 |
| |
|
0 commit comments
Comments
(0)