diff options
author | Robert Haas | 2024-08-21 14:14:35 +0000 |
---|---|---|
committer | Robert Haas | 2024-08-21 14:14:35 +0000 |
commit | c01743aa4866e13da2c54e44010abc6d5f986363 (patch) | |
tree | 7958824608ee01747277b4c7d65d06cb0d8ecde9 /src/test/regress/expected/aggregates.out | |
parent | e22253467942fdb100087787c3e1e3a8620c54b2 (diff) |
Show number of disabled nodes in EXPLAIN ANALYZE output.
Now that disable_cost is not included in the cost estimate, there's
no visible sign in EXPLAIN output of which plan nodes are disabled.
Fix that by propagating the number of disabled nodes from Path to
Plan, and then showing it in the EXPLAIN output.
There is some question about whether this is a desirable change.
While I personally believe that it is, it seems best to make it a
separate commit, in case we decide to back out just this part, or
rework it.
Reviewed by Andres Freund, Heikki Linnakangas, and David Rowley.
Discussion: http://postgr.es/m/CA+TgmoZ_+MS+o6NeGK2xyBv-xM+w1AfFVuHE4f_aq6ekHv7YSQ@mail.gmail.com
Diffstat (limited to 'src/test/regress/expected/aggregates.out')
-rw-r--r-- | src/test/regress/expected/aggregates.out | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/test/regress/expected/aggregates.out b/src/test/regress/expected/aggregates.out index a5596ab2106..8ac13b562c4 100644 --- a/src/test/regress/expected/aggregates.out +++ b/src/test/regress/expected/aggregates.out @@ -2920,18 +2920,23 @@ GROUP BY c1.w, c1.z; QUERY PLAN ----------------------------------------------------- GroupAggregate + Disabled Nodes: 2 Group Key: c1.w, c1.z -> Sort + Disabled Nodes: 2 Sort Key: c1.w, c1.z, c1.x, c1.y -> Merge Join + Disabled Nodes: 2 Merge Cond: (c1.x = c2.x) -> Sort Sort Key: c1.x -> Seq Scan on group_agg_pk c1 + Disabled Nodes: 1 -> Sort Sort Key: c2.x -> Seq Scan on group_agg_pk c2 -(12 rows) + Disabled Nodes: 1 +(17 rows) SELECT avg(c1.f ORDER BY c1.x, c1.y) FROM group_agg_pk c1 JOIN group_agg_pk c2 ON c1.x = c2.x @@ -2953,19 +2958,24 @@ GROUP BY c1.y,c1.x,c2.x; QUERY PLAN ----------------------------------------------------- Group + Disabled Nodes: 2 Group Key: c1.x, c1.y -> Incremental Sort + Disabled Nodes: 2 Sort Key: c1.x, c1.y Presorted Key: c1.x -> Merge Join + Disabled Nodes: 2 Merge Cond: (c1.x = c2.x) -> Sort Sort Key: c1.x -> Seq Scan on group_agg_pk c1 + Disabled Nodes: 1 -> Sort Sort Key: c2.x -> Seq Scan on group_agg_pk c2 -(13 rows) + Disabled Nodes: 1 +(18 rows) EXPLAIN (COSTS OFF) SELECT c1.y,c1.x FROM group_agg_pk c1 @@ -2975,19 +2985,24 @@ GROUP BY c1.y,c2.x,c1.x; QUERY PLAN ----------------------------------------------------- Group + Disabled Nodes: 2 Group Key: c2.x, c1.y -> Incremental Sort + Disabled Nodes: 2 Sort Key: c2.x, c1.y Presorted Key: c2.x -> Merge Join + Disabled Nodes: 2 Merge Cond: (c1.x = c2.x) -> Sort Sort Key: c1.x -> Seq Scan on group_agg_pk c1 + Disabled Nodes: 1 -> Sort Sort Key: c2.x -> Seq Scan on group_agg_pk c2 -(13 rows) + Disabled Nodes: 1 +(18 rows) RESET enable_nestloop; RESET enable_hashjoin; |