forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3c80e96
committed
Adjust EXPLAIN output for parallel Result Cache plans
Here we adjust the EXPLAIN ANALYZE output for Result Cache so that wedon't show any Result Cache stats for parallel workers who don'tcontribute anything to Result Cache plan nodes.I originally had ideas that workers who don't help could still have theirResult Cache stats displayed. The idea with that was so that I couldwrite some parallel Result Cache regression tests that show the EXPLAINANALYZE output. However, I realized a little too late that such testswould just not be possible to have run in a stable way on the buildfarm.With that knowledge, before9eacee2 went in, I had removed all of thetests that were showing the EXPLAIN ANALYZE output of a parallel ResultCache plan, however, I forgot to put back the code that adjusts theEXPLAIN output to hide the Result Cache stats for parallel workers whowere not fast enough to help out before query execution was over. Allother nodes behave this way and so should Result Cache.Additionally, with this change, it now seems safe enough to remove the SETforce_parallel_mode = off that I had added to the regression tests.Also, perform some cleanup in the partition_prune tests. I had adjustedthe explain_parallel_append() function to sanitize the Result CacheEXPLAIN ANALYZE output. However, since I didn't actually include anyparallel Result Cache tests that show their EXPLAIN ANALYZE output, thatcode does nothing and can be removed.In passing, move the setting of memPeakKb into the scope where it's used.Reported-by: Amit KhandekarAuthor: David Rowley, Amit KhandekarDiscussion:https://postgr.es/m/CAJ3gD9d8SkfY95GpM1zmsOtX2-Ogx5q-WLsf8f0ykEb0hCRK3w@mail.gmail.com1 parent51ef917 commit3c80e96
File tree
5 files changed
+17
-23
lines changed- src
- backend/commands
- test/regress
- expected
- sql
5 files changed
+17
-23
lines changedLines changed: 16 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3144 | 3144 |
| |
3145 | 3145 |
| |
3146 | 3146 |
| |
3147 |
| - | |
3148 |
| - | |
3149 |
| - | |
3150 |
| - | |
3151 |
| - | |
3152 |
| - | |
3153 |
| - | |
3154 |
| - | |
3155 |
| - | |
3156 | 3147 |
| |
3157 | 3148 |
| |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
| 3154 | + | |
| 3155 | + | |
| 3156 | + | |
| 3157 | + | |
3158 | 3158 |
| |
3159 | 3159 |
| |
3160 | 3160 |
| |
| |||
3186 | 3186 |
| |
3187 | 3187 |
| |
3188 | 3188 |
| |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
3189 | 3196 |
| |
3190 | 3197 |
| |
3191 | 3198 |
| |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1958 | 1958 |
| |
1959 | 1959 |
| |
1960 | 1960 |
| |
1961 |
| - | |
1962 |
| - | |
1963 |
| - | |
1964 | 1961 |
| |
1965 | 1962 |
| |
1966 | 1963 |
| |
|
Lines changed: 0 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 | 34 |
| |
38 | 35 |
| |
39 | 36 |
| |
| |||
118 | 115 |
| |
119 | 116 |
| |
120 | 117 |
| |
121 |
| - | |
122 | 118 |
| |
123 | 119 |
| |
124 | 120 |
| |
|
Lines changed: 0 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
464 | 464 |
| |
465 | 465 |
| |
466 | 466 |
| |
467 |
| - | |
468 |
| - | |
469 |
| - | |
470 | 467 |
| |
471 | 468 |
| |
472 | 469 |
| |
|
Lines changed: 1 addition & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 |
| - | |
38 |
| - | |
| 36 | + | |
39 | 37 |
| |
40 | 38 |
| |
41 | 39 |
| |
| |||
69 | 67 |
| |
70 | 68 |
| |
71 | 69 |
| |
72 |
| - | |
73 | 70 |
| |
74 | 71 |
| |
75 | 72 |
| |
|
0 commit comments
Comments
(0)