Add memory/disk usage for Window aggregate nodes in EXPLAIN.
Tatsuo Ishii <ishii@postgresql.org>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/explain.c | modified | +50 −18 |
| src/test/regress/expected/explain.out | modified | +38 −0 |
| src/test/regress/sql/explain.sql | modified | +9 −0 |
Discussion
- Add memory/disk usage for WindowAgg nodes in EXPLAIN 53 messages · 2024-07-06 → 2024-09-23