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/include | |
| 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/include')
| -rw-r--r-- | src/include/nodes/plannodes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/nodes/plannodes.h b/src/include/nodes/plannodes.h index 1aeeaec95e1..62cd6a6666e 100644 --- a/src/include/nodes/plannodes.h +++ b/src/include/nodes/plannodes.h @@ -125,6 +125,7 @@ typedef struct Plan /* * estimated execution costs for plan (see costsize.c for more info) */ + int disabled_nodes; /* count of disabled nodes */ Cost startup_cost; /* cost expended before fetching any tuples */ Cost total_cost; /* total cost (assuming all tuples fetched) */ |
