Commit 235aff9
Fix explain bad indent when showing operatorMem. (#288)
Word operatorMem is added by GPDB, it shows bad indent when explain.
set gp_resqueue_print_operator_memory_limits=on;
explain(costs off) select count(*) from test_hj_spill;
QUERY PLAN
----------------------------------------------------------------------------
Finalize AggregateoperatorMem: 100 kB
-> Gather Motion 3:1 (slice1; segments: 3)operatorMem: 100 kB
-> Partial AggregateoperatorMem: 100 kB
-> Seq Scan on test_hj_spilloperatorMem: 100 kB
This is introduced by UPSTREAM commit 1001368 which tried to resolve
explain indent of parallel query.
Add indent manually for CBDB's additional operatorMem.
Authored-by: Zhang Mingli avamingli@gmail.com1 parent 23f0bd2 commit 235aff9
3 files changed
Lines changed: 18 additions & 3 deletions
File tree
- src
- backend/commands
- test/regress
- expected/workfile
- sql/workfile
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2083 | 2083 | | |
2084 | 2084 | | |
2085 | 2085 | | |
2086 | | - | |
2087 | | - | |
2088 | | - | |
| 2086 | + | |
2089 | 2087 | | |
2090 | 2088 | | |
2091 | 2089 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
42 | 58 | | |
43 | 59 | | |
44 | 60 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments