Thread: pgsql: Add memory/disk usage for more executor nodes.
Add memory/disk usage for more executor nodes. This commit is similar to 95d6e9af07, expanding the idea to CTE scan, table function scan and recursive union scan nodes so that the maximum tuplestore memory or disk usage is shown with EXPLAIN ANALYZE command. Also adjust show_storage_info() so that it accepts storage type and storage size arguments instead of Tuplestorestate. This allows the node types to share the formatting code using show_storage_info(). Due to this show_material_info() and show_windowagg_info() are also modified. Reviewed-by: David Rowley Discussion: https://postgr.es/m/20240918.211246.1127161704188186085.ishii%40postgresql.org Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/40708acd65c112149493d7159ca5c5a9391c9d35 Modified Files -------------- src/backend/commands/explain.c | 107 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 97 insertions(+), 10 deletions(-)