postgresql/src/backend
David Rowley a57c837e5c Make EXPLAIN ANALYZE of HashAgg more similar to Hash Join
There were various unnecessary differences between Hash Agg's EXPLAIN
ANALYZE output and Hash Join's.  Here we modify the Hash Agg output so
that it's better aligned to Hash Join's.

The following changes have been made:
1. Start batches counter at 1 instead of 0.
2. Always display the "Batches" property, even when we didn't spill to
   disk.
3. Use the text "Batches" instead of "HashAgg Batches" for text format.
4. Use the text "Memory Usage" instead of "Peak Memory Usage" for text
   format.
5. Include "Batches" before "Memory Usage" in both text and non-text
   formats.

In passing also modify the "Planned Partitions" property so that we show
it regardless of if the value is 0 or not for non-text EXPLAIN formats.
This was pointed out by Justin Pryzby and probably should have been part
of 40efbf870.

Reviewed-by: Justin Pryzby, Jeff Davis
Discussion: https://postgr.es/m/CAApHDvrshRnA6C0VFnu7Fb9TVvgGo80PUMm5+2DiaS1gEkPvtw@mail.gmail.com
Backpatch-through: 13, where HashAgg batching was introduced
2020-07-29 11:43:11 +12:00
..
access Rename wal_keep_segments to wal_keep_size. 2020-07-20 13:33:45 +09:00
bootstrap Skip WAL for new relfilenodes, under wal_level=minimal. 2020-04-04 12:25:34 -07:00
catalog Assert that we don't insert nulls into attnotnull catalog columns. 2020-07-21 12:38:08 -04:00
commands Make EXPLAIN ANALYZE of HashAgg more similar to Hash Join 2020-07-29 11:43:11 +12:00
executor Make EXPLAIN ANALYZE of HashAgg more similar to Hash Join 2020-07-29 11:43:11 +12:00
foreign Update copyrights for 2020 2020-01-01 12:21:45 -05:00
jit pgindent run prior to branching v13. 2020-06-07 16:57:08 -04:00
lib Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
libpq Fix list of SSL error codes for older OpenSSL versions. 2020-06-27 13:26:30 -04:00
main Add PostgreSQL home page to --help output 2020-02-28 13:12:21 +01:00
nodes Reconcile nodes/*funcs.c. 2020-05-25 16:23:48 -07:00
optimizer Remove hashagg_avoid_disk_plan GUC. 2020-07-27 17:53:17 -07:00
parser part_strategy does not need its very own keyword classification. 2020-05-19 20:09:59 -04:00
partitioning Fix some issues with step generation in partition pruning. 2020-07-28 11:00:00 +09:00
po Translation updates 2020-06-22 14:08:30 +02:00
port Spelling adjustments 2020-06-07 15:06:51 +02:00
postmaster pgindent run prior to branching v13. 2020-06-07 16:57:08 -04:00
regex Dial back -Wimplicit-fallthrough to level 3 2020-05-13 15:31:14 -04:00
replication Fix construction of updated-columns bitmap in logical replication. 2020-07-20 13:40:16 -04:00
rewrite Add missing invocations to object access hooks 2020-05-23 14:03:04 +09:00
snowball Update copyrights for 2020 2020-01-01 12:21:45 -05:00
statistics Run pgindent with new pg_bsd_indent version 2.1.1. 2020-05-16 11:54:51 -04:00
storage Fix error message. 2020-07-23 21:15:01 +12:00
tcop Spelling adjustments 2020-06-07 15:06:51 +02:00
tsearch Fix assorted bugs by changing TS_execute's callback API to ternary logic. 2020-07-24 15:26:51 -04:00
utils Remove hashagg_avoid_disk_plan GUC. 2020-07-27 17:53:17 -07:00
.gitignore Add .gitignore entries for AIX-specific intermediate build artifacts. 2015-07-08 20:44:22 -04:00
common.mk Remove PARTIAL_LINKING build mode. 2018-03-30 17:33:04 -07:00
Makefile Update copyrights for 2020 2020-01-01 12:21:45 -05:00
nls.mk Add missing gettext triggers 2020-04-28 13:35:40 +02:00