Add memory/disk usage for Window aggregate nodes in EXPLAIN.
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 17 Sep 2024 05:38:53 +0000 (14:38 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 17 Sep 2024 05:38:53 +0000 (14:38 +0900)
commit95d6e9af07d2e5af2fdd272e72b5b552bad3ea0a
treec9103286d6a8eaf06751b11eaa38df7661d55af8
parent1bbf1e2f1a077905037272cd4767e952f34c02b3
Add memory/disk usage for Window aggregate nodes in EXPLAIN.

This commit is similar to 1eff8279d and expands the idea to Window
aggregate nodes so that users can know how much memory or disk the
tuplestore used.

This commit uses newly introduced tuplestore_get_stats() to inquire this
information and add some additional output in EXPLAIN ANALYZE to
display the information for the Window aggregate node.

Reviewed-by: David Rowley, Ashutosh Bapat, Maxim Orlov, Jian He
Discussion: https://postgr.es/m/20240706.202254.89740021795421286.ishii%40postgresql.org
src/backend/commands/explain.c
src/test/regress/expected/explain.out
src/test/regress/sql/explain.sql