forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8526bcb
committed
Try again to fix accumulation of parallel worker instrumentation.
When a Gather or Gather Merge node is started and stopped multipletimes, accumulate instrumentation data only once, at the end, insteadof after each execution, to avoid recording inflated totals.Commit778e78a, the previous attemptat a fix, instead reset the state after every execution, which workedfor the general instrumentation data but had problems for the additionalinstrumentation specific to Sort and Hash nodes.Report by hubert depesz lubaczewski. Analysis and fix by Amit Kapila,following a design proposal from Thomas Munro, with a comment tweakby me.Discussion:http://postgr.es/m/20171127175631.GA405@depesz.com1 parent38fc547 commit8526bcb
File tree
7 files changed
+96
-49
lines changed- src
- backend/executor
- include/executor
- test/regress
- expected
- sql
7 files changed
+96
-49
lines changedLines changed: 11 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
899 | 899 |
| |
900 | 900 |
| |
901 | 901 |
| |
902 |
| - | |
903 |
| - | |
904 |
| - | |
905 | 902 |
| |
906 |
| - | |
907 |
| - | |
| 903 | + | |
908 | 904 |
| |
909 | 905 |
| |
910 | 906 |
| |
| |||
977 | 973 |
| |
978 | 974 |
| |
979 | 975 |
| |
980 |
| - | |
| 976 | + | |
981 | 977 |
| |
982 | 978 |
| |
983 | 979 |
| |
| |||
1023 | 1019 |
| |
1024 | 1020 |
| |
1025 | 1021 |
| |
1026 |
| - | |
1027 |
| - | |
1028 |
| - | |
1029 |
| - | |
1030 |
| - | |
1031 | 1022 |
| |
1032 | 1023 |
| |
1033 | 1024 |
| |
1034 | 1025 |
| |
1035 |
| - | |
1036 |
| - | |
1037 |
| - | |
1038 |
| - | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
1039 | 1030 |
| |
1040 | 1031 |
| |
1041 | 1032 |
| |
1042 | 1033 |
| |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
1043 | 1039 |
| |
1044 | 1040 |
| |
1045 | 1041 |
| |
|
Lines changed: 0 additions & 13 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1669 | 1669 |
| |
1670 | 1670 |
| |
1671 | 1671 |
| |
1672 |
| - | |
1673 |
| - | |
1674 |
| - | |
1675 |
| - | |
1676 |
| - | |
1677 |
| - | |
1678 |
| - | |
1679 |
| - | |
1680 |
| - | |
1681 |
| - | |
1682 |
| - | |
1683 |
| - | |
1684 |
| - | |
1685 | 1672 |
| |
1686 | 1673 |
| |
1687 | 1674 |
| |
|
Lines changed: 0 additions & 17 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
396 | 396 |
| |
397 | 397 |
| |
398 | 398 |
| |
399 |
| - | |
400 |
| - | |
401 |
| - | |
402 |
| - | |
403 |
| - | |
404 |
| - | |
405 |
| - | |
406 |
| - | |
407 |
| - | |
408 |
| - | |
409 |
| - | |
410 |
| - | |
411 |
| - | |
412 |
| - | |
413 |
| - | |
414 |
| - | |
415 |
| - | |
416 | 399 |
| |
417 | 400 |
| |
418 | 401 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
52 | 52 |
| |
53 | 53 |
| |
54 | 54 |
| |
55 |
| - | |
56 | 55 |
| |
57 | 56 |
| |
58 | 57 |
| |
|
Lines changed: 0 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 | 29 |
| |
31 | 30 |
| |
32 | 31 |
| |
|
Lines changed: 58 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
465 | 465 |
| |
466 | 466 |
| |
467 | 467 |
| |
| 468 | + | |
468 | 469 |
| |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
469 | 526 |
| |
470 | 527 |
| |
471 | 528 |
| |
472 | 529 |
| |
473 | 530 |
| |
474 |
| - | |
475 | 531 |
| |
| 532 | + | |
476 | 533 |
| |
477 | 534 |
| |
478 | 535 |
| |
|
Lines changed: 27 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
| 182 | + | |
182 | 183 |
| |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
183 | 209 |
| |
184 | 210 |
| |
185 | 211 |
| |
186 | 212 |
| |
187 | 213 |
| |
188 |
| - | |
189 | 214 |
| |
| 215 | + | |
190 | 216 |
| |
191 | 217 |
| |
192 | 218 |
| |
|
0 commit comments
Comments
(0)