forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0e3e1c4
committed
Make EXPLAIN ANALYZE of HashAgg more similar to Hash Join
There were various unnecessary differences between Hash Agg's EXPLAINANALYZE output and Hash Join's. Here we modify the Hash Agg output sothat it's better aligned to Hash Join's.The following changes have been made:1. Start batches counter at 1 instead of 0.2. Always display the "Batches" property, even when we didn't spill to disk.3. Use the text "Batches" instead of "HashAgg Batches" for text format.4. Use the text "Memory Usage" instead of "Peak Memory Usage" for text format.5. Include "Batches" before "Memory Usage" in both text and non-text formats.In passing also modify the "Planned Partitions" property so that we showit regardless of if the value is 0 or not for non-text EXPLAIN formats.This was pointed out by Justin Pryzby and probably should have been partof40efbf8.Reviewed-by: Justin Pryzby, Jeff DavisDiscussion:https://postgr.es/m/CAApHDvrshRnA6C0VFnu7Fb9TVvgGo80PUMm5+2DiaS1gEkPvtw@mail.gmail.comBackpatch-through: 13, where HashAgg batching was introduced1 parentd7c8576 commit0e3e1c4
2 files changed
+20
-18
lines changedLines changed: 17 additions & 18 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3059 | 3059 |
| |
3060 | 3060 |
| |
3061 | 3061 |
| |
3062 |
| - | |
3063 |
| - | |
| 3062 | + | |
3064 | 3063 |
| |
3065 | 3064 |
| |
3066 |
| - | |
3067 | 3065 |
| |
3068 | 3066 |
| |
3069 | 3067 |
| |
3070 | 3068 |
| |
3071 | 3069 |
| |
| 3070 | + | |
| 3071 | + | |
3072 | 3072 |
| |
3073 | 3073 |
| |
3074 | 3074 |
| |
3075 |
| - | |
3076 |
| - | |
3077 | 3075 |
| |
3078 | 3076 |
| |
3079 | 3077 |
| |
| |||
3099 | 3097 |
| |
3100 | 3098 |
| |
3101 | 3099 |
| |
3102 |
| - | |
3103 |
| - | |
| 3100 | + | |
| 3101 | + | |
3104 | 3102 |
| |
3105 |
| - | |
3106 |
| - | |
3107 |
| - | |
3108 |
| - | |
| 3103 | + | |
| 3104 | + | |
| 3105 | + | |
| 3106 | + | |
3109 | 3107 |
| |
3110 | 3108 |
| |
3111 | 3109 |
| |
| |||
3130 | 3128 |
| |
3131 | 3129 |
| |
3132 | 3130 |
| |
3133 |
| - | |
3134 |
| - | |
| 3131 | + | |
| 3132 | + | |
3135 | 3133 |
| |
3136 |
| - | |
3137 |
| - | |
3138 |
| - | |
| 3134 | + | |
| 3135 | + | |
| 3136 | + | |
| 3137 | + | |
3139 | 3138 |
| |
3140 | 3139 |
| |
3141 | 3140 |
| |
3142 | 3141 |
| |
| 3142 | + | |
| 3143 | + | |
3143 | 3144 |
| |
3144 | 3145 |
| |
3145 | 3146 |
| |
3146 |
| - | |
3147 |
| - | |
3148 | 3147 |
| |
3149 | 3148 |
| |
3150 | 3149 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3641 | 3641 |
| |
3642 | 3642 |
| |
3643 | 3643 |
| |
| 3644 | + | |
| 3645 | + | |
| 3646 | + | |
3644 | 3647 |
| |
3645 | 3648 |
| |
3646 | 3649 |
| |
|
0 commit comments
Comments
(0)