git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: f219167) | patch
Fix EXPLAIN ANALYZE for parallel HashAgg plans
2020年6月19日 05:24:27 +0000 (17:24 +1200)
2020年6月19日 05:24:27 +0000 (17:24 +1200)
commit 9bdb300dedf086cc54edf740088208e6b24307ef
Fix EXPLAIN ANALYZE for parallel HashAgg plans

Since 1f39bce02, HashAgg nodes have had the ability to spill to disk when
memory consumption exceeds work_mem. That commit added new properties to
EXPLAIN ANALYZE to show the maximum memory usage and disk usage, however,
it didn't quite go as far as showing that information for parallel
workers. Since workers may have experienced something very different from
the main process, we should show this information per worker, as is done
in Sort.

Reviewed-by: Justin Pryzby
Reviewed-by: Jeff Davis
Discussion: https://postgr.es/m/CAApHDvpEKbfZa18mM1TD7qV6PG+w97pwCWq5tVD0dX7e11gRJw@mail.gmail.com
Backpatch-through: 13, where the hashagg spilling code was added.
src/backend/commands/explain.c diff | blob | blame | history
src/backend/executor/execParallel.c diff | blob | blame | history
src/backend/executor/nodeAgg.c diff | blob | blame | history
src/include/executor/nodeAgg.h diff | blob | blame | history
src/include/nodes/execnodes.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /