Add memory/disk usage for more executor nodes.
authorTatsuo Ishii <[email protected]>
Mon, 23 Sep 2024 07:34:24 +0000 (16:34 +0900)
committerTatsuo Ishii <[email protected]>
Mon, 23 Sep 2024 07:34:24 +0000 (16:34 +0900)
commit40708acd65c112149493d7159ca5c5a9391c9d35
tree6119ed703f75076c43b17f5a02b15f64165a2a9f
parent6aa44060a3c94ee10273bb8a89e98a5bb2fbbacb
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
src/backend/commands/explain.c