- Notifications
You must be signed in to change notification settings - Fork5
Commitc6dbf1f
committed
Stop the executor if no more tuples can be sent from worker to leader.
If a Gather node has read as many tuples as it needs (for example, dueto Limit) it may detach the queue connecting it to the worker beforereading all of the worker's tuples. Rather than let the workercontinue to generate and send all of the results, have it stop aftersending the next tuple.More could be done here to stop the worker even quicker, but this isabout as well as we can hope to do for 9.6.This is in response to a problem report from Andreas Seltenreich.Commit44339b8 should be actually besufficient to fix that example even without this change, but it seemsbetter to do this, too, since we might otherwise waste quite a largeamount of effort in one or more workers.Discussion: CAA4eK1KOKGqmz9bGu+Z42qhRwMbm4R5rfnqsLCNqFs9j14jzEA@mail.gmail.comAmit Kapila1 parent44339b8 commitc6dbf1f
File tree
14 files changed
+78
-29
lines changed- src
- backend
- access/common
- commands
- executor
- tcop
- include
- access
- tcop
14 files changed
+78
-29
lines changedLines changed: 15 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 |
| - | |
31 |
| - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
32 | 32 |
| |
33 | 33 |
| |
34 | 34 |
| |
| |||
299 | 299 |
| |
300 | 300 |
| |
301 | 301 |
| |
302 |
| - | |
| 302 | + | |
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
| |||
376 | 376 |
| |
377 | 377 |
| |
378 | 378 |
| |
| 379 | + | |
| 380 | + | |
379 | 381 |
| |
380 | 382 |
| |
381 | 383 |
| |
382 | 384 |
| |
383 | 385 |
| |
384 | 386 |
| |
385 |
| - | |
| 387 | + | |
386 | 388 |
| |
387 | 389 |
| |
388 | 390 |
| |
| |||
452 | 454 |
| |
453 | 455 |
| |
454 | 456 |
| |
| 457 | + | |
| 458 | + | |
455 | 459 |
| |
456 | 460 |
| |
457 | 461 |
| |
| |||
528 | 532 |
| |
529 | 533 |
| |
530 | 534 |
| |
531 |
| - | |
| 535 | + | |
532 | 536 |
| |
533 | 537 |
| |
534 | 538 |
| |
| |||
553 | 557 |
| |
554 | 558 |
| |
555 | 559 |
| |
| 560 | + | |
| 561 | + | |
556 | 562 |
| |
557 | 563 |
| |
558 | 564 |
| |
| |||
564 | 570 |
| |
565 | 571 |
| |
566 | 572 |
| |
567 |
| - | |
| 573 | + | |
568 | 574 |
| |
569 | 575 |
| |
570 | 576 |
| |
| |||
636 | 642 |
| |
637 | 643 |
| |
638 | 644 |
| |
| 645 | + | |
| 646 | + | |
639 | 647 |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4454 | 4454 |
| |
4455 | 4455 |
| |
4456 | 4456 |
| |
4457 |
| - | |
| 4457 | + | |
4458 | 4458 |
| |
4459 | 4459 |
| |
4460 | 4460 |
| |
| |||
4466 | 4466 |
| |
4467 | 4467 |
| |
4468 | 4468 |
| |
| 4469 | + | |
| 4470 | + | |
4469 | 4471 |
| |
4470 | 4472 |
| |
4471 | 4473 |
| |
|
Lines changed: 4 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 | 68 |
| |
| |||
482 | 482 |
| |
483 | 483 |
| |
484 | 484 |
| |
485 |
| - | |
| 485 | + | |
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
| |||
507 | 507 |
| |
508 | 508 |
| |
509 | 509 |
| |
| 510 | + | |
| 511 | + | |
510 | 512 |
| |
511 | 513 |
| |
512 | 514 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
56 | 56 |
| |
57 | 57 |
| |
58 | 58 |
| |
59 |
| - | |
| 59 | + | |
60 | 60 |
| |
61 | 61 |
| |
62 | 62 |
| |
| |||
467 | 467 |
| |
468 | 468 |
| |
469 | 469 |
| |
470 |
| - | |
| 470 | + | |
471 | 471 |
| |
472 | 472 |
| |
473 | 473 |
| |
| |||
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
| 489 | + | |
| 490 | + | |
489 | 491 |
| |
490 | 492 |
| |
491 | 493 |
| |
|
Lines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1593 | 1593 |
| |
1594 | 1594 |
| |
1595 | 1595 |
| |
1596 |
| - | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
1597 | 1605 |
| |
1598 | 1606 |
| |
1599 | 1607 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1266 | 1266 |
| |
1267 | 1267 |
| |
1268 | 1268 |
| |
1269 |
| - | |
| 1269 | + | |
1270 | 1270 |
| |
1271 | 1271 |
| |
1272 | 1272 |
| |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
167 | 167 |
| |
168 | 168 |
| |
169 | 169 |
| |
170 |
| - | |
| 170 | + | |
171 | 171 |
| |
172 | 172 |
| |
173 | 173 |
| |
| |||
1904 | 1904 |
| |
1905 | 1905 |
| |
1906 | 1906 |
| |
1907 |
| - | |
| 1907 | + | |
1908 | 1908 |
| |
1909 | 1909 |
| |
1910 | 1910 |
| |
| |||
1914 | 1914 |
| |
1915 | 1915 |
| |
1916 | 1916 |
| |
| 1917 | + | |
| 1918 | + | |
1917 | 1919 |
| |
1918 | 1920 |
| |
1919 | 1921 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1774 | 1774 |
| |
1775 | 1775 |
| |
1776 | 1776 |
| |
1777 |
| - | |
| 1777 | + | |
1778 | 1778 |
| |
1779 | 1779 |
| |
1780 | 1780 |
| |
| |||
1809 | 1809 |
| |
1810 | 1810 |
| |
1811 | 1811 |
| |
| 1812 | + | |
| 1813 | + | |
1812 | 1814 |
| |
1813 | 1815 |
| |
1814 | 1816 |
| |
|
Lines changed: 12 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
118 |
| - | |
| 118 | + | |
119 | 119 |
| |
120 | 120 |
| |
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
| 124 | + | |
124 | 125 |
| |
125 | 126 |
| |
126 | 127 |
| |
| |||
195 | 196 |
| |
196 | 197 |
| |
197 | 198 |
| |
198 |
| - | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
199 | 209 |
| |
200 | 210 |
| |
201 | 211 |
| |
|
Lines changed: 8 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
41 |
| - | |
| 40 | + | |
| 41 | + | |
42 | 42 |
| |
43 | 43 |
| |
44 | 44 |
| |
| |||
90 | 90 |
| |
91 | 91 |
| |
92 | 92 |
| |
93 |
| - | |
| 93 | + | |
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
| 99 | + | |
| 100 | + | |
99 | 101 |
| |
100 | 102 |
| |
101 | 103 |
| |
102 | 104 |
| |
103 | 105 |
| |
104 | 106 |
| |
105 |
| - | |
| 107 | + | |
106 | 108 |
| |
107 | 109 |
| |
108 | 110 |
| |
| |||
152 | 154 |
| |
153 | 155 |
| |
154 | 156 |
| |
| 157 | + | |
| 158 | + | |
155 | 159 |
| |
156 | 160 |
| |
157 | 161 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
45 | 45 |
| |
46 | 46 |
| |
47 | 47 |
| |
48 |
| - | |
| 48 | + | |
49 | 49 |
| |
50 | 50 |
| |
| 51 | + | |
51 | 52 |
| |
52 | 53 |
| |
53 | 54 |
| |
|
Lines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1109 | 1109 |
| |
1110 | 1110 |
| |
1111 | 1111 |
| |
1112 |
| - | |
| 1112 | + | |
| 1113 | + | |
| 1114 | + | |
| 1115 | + | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
1113 | 1119 |
| |
1114 | 1120 |
| |
1115 | 1121 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
33 |
| - | |
| 33 | + | |
34 | 34 |
| |
35 | 35 |
|
Lines changed: 4 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
104 | 104 |
| |
105 | 105 |
| |
106 | 106 |
| |
107 |
| - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
108 | 110 |
| |
109 | 111 |
| |
110 | 112 |
| |
111 | 113 |
| |
112 | 114 |
| |
113 | 115 |
| |
114 | 116 |
| |
115 |
| - | |
| 117 | + | |
116 | 118 |
| |
117 | 119 |
| |
118 | 120 |
| |
|
0 commit comments
Comments
(0)