pgsql: Add memory/disk usage for more executor nodes.

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add memory/disk usage for more executor nodes.
Date: 2024-09-23 07:51:26
Message-ID: E1ssdqv-000Vjn-SY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2024-09-23 09:44:04 pgsql: Fix asserts in fast-path locking code
Previous Message Nathan Bossart 2024-09-21 20:19:25 pgsql: Remove pg_authid's TOAST table.