forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit05dfb81
committed
Fix bogus EXPLAIN output for Hash Aggregate
9bdb300 modified the EXPLAIN output for Hash Aggregate to show detailsfrom parallel workers. However, it neglected to consider that a givenparallel worker may not have assisted with the given Hash Aggregate. Thiscan occur when workers fail to start or during Parallel Append withenable_partitionwise_join enabled when only a single worker is working ona non-parallel aware sub-plan. It could also happen if a worker simplywasn't fast enough to get any work done before other processes went andfinished all the work.The bogus output came from the fact that ExplainOpenWorker() skippedshowing any details for non-initialized workers but show_hashagg_info()did show details from the worker. This meant that the worker propertiesthat were shown were not properly attributed to the worker that theybelong to.In passing, we also now don't show Hash Aggregate properties for theleader process when it did not contribute any work to the Hash Aggregate.This can occur either during Parallel Append when only a parallel workerworked on a given sub plan or with parallel_leader_participation set tooff. This aims to make the behavior of Hash Aggregate's EXPLAIN outputmore similar to Sort's.Reported-by: Justin PryzbyDiscussion:https://postgr.es/m/20200805012105.GZ28072%40telsasoft.comBackpatch-through: 13, where the original breakage was introduced1 parentd0aa57d commit05dfb81
1 file changed
+38
-25
lines changedLines changed: 38 additions & 25 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3063 | 3063 |
| |
3064 | 3064 |
| |
3065 | 3065 |
| |
3066 |
| - | |
3067 |
| - | |
3068 |
| - | |
3069 |
| - | |
3070 |
| - | |
3071 |
| - | |
3072 |
| - | |
3073 |
| - | |
3074 |
| - | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
3075 | 3079 |
| |
3076 | 3080 |
| |
3077 | 3081 |
| |
| |||
3085 | 3089 |
| |
3086 | 3090 |
| |
3087 | 3091 |
| |
3088 |
| - | |
| 3092 | + | |
| 3093 | + | |
| 3094 | + | |
| 3095 | + | |
| 3096 | + | |
| 3097 | + | |
3089 | 3098 |
| |
3090 |
| - | |
3091 |
| - | |
3092 |
| - | |
3093 |
| - | |
| 3099 | + | |
| 3100 | + | |
| 3101 | + | |
| 3102 | + | |
3094 | 3103 |
| |
3095 |
| - | |
3096 |
| - | |
3097 |
| - | |
3098 |
| - | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
3099 | 3107 |
| |
3100 |
| - | |
3101 |
| - | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
| 3112 | + | |
| 3113 | + | |
| 3114 | + | |
3102 | 3115 |
| |
3103 |
| - | |
3104 |
| - | |
3105 |
| - | |
3106 |
| - | |
3107 |
| - | |
| 3116 | + | |
| 3117 | + | |
3108 | 3118 |
| |
3109 | 3119 |
| |
3110 | 3120 |
| |
| |||
3117 | 3127 |
| |
3118 | 3128 |
| |
3119 | 3129 |
| |
| 3130 | + | |
| 3131 | + | |
| 3132 | + | |
3120 | 3133 |
| |
3121 | 3134 |
| |
3122 | 3135 |
| |
|
0 commit comments
Comments
(0)