Re: Default setting for enable_hashagg_disk
Bruce Momjian <bruce@momjian.us>
From: Bruce Momjian <bruce@momjian.us>
To: Peter Geoghegan <pg@bowt.ie>
Cc: Andres Freund <andres@anarazel.de>, Jeff Davis <pgsql@j-davis.com>, Robert Haas <robertmhaas@gmail.com>, David Rowley <dgrowleyml@gmail.com>, Justin Pryzby <pryzby@telsasoft.com>, Melanie Plageman <melanieplageman@gmail.com>, Tomas Vondra <tomas.vondra@2ndquadrant.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2020-06-26T23:56:22Z
Lists: pgsql-hackers, pgsql-docs
On Fri, Jun 26, 2020 at 01:53:05PM -0700, Peter Geoghegan wrote: > On Thu, Jun 25, 2020 at 1:36 PM Andres Freund <andres@anarazel.de> wrote: > > 12 28164.865 ms > > > > fast ssd: > > HEAD 92520.680 ms > > > > magnetic: > > HEAD 183968.538 ms > > > > (no reads, there's plenty enough memory. Just writes because the age / > > amount thresholds for dirty data are reached) > > > > In the magnetic case we're IO bottlenecked nearly the whole time. > > I agree with almost everything you've said on this thread, but at the > same time I question the emphasis on I/O here. You've shown that > spinning rust is about twice as slow as a fast SSD here. Fair enough, > but to me the real story is that spilling is clearly a lot slower in > general, regardless of how fast the storage subsystem happens to be (I > wonder how fast it is with a ramdisk). To me, it makes more sense to This blog entry shows ORDER BY using ram disk, SSD, and magnetic: https://momjian.us/main/blogs/pgblog/2012.html#February_2_2012 It is from 2012, but I can re-run the test if you want. -- Bruce Momjian <bruce@momjian.us> https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee
Commits
-
Add hash_mem_multiplier GUC.
- d6c08e29e7bc 14.0 landed
- 78530c8e7a5a 13.0 landed
-
HashAgg: use better cardinality estimate for recursive spilling.
- 3a232a3183d5 13.0 landed
- 9878b643f37b 14.0 landed
-
Remove hashagg_avoid_disk_plan GUC.
- bcbf9446a298 14.0 landed
- 5a6cc6ffa914 13.0 landed
-
Doc fixup for hashagg_avoid_disk_plan GUC.
- d33f33539d7f 13.0 landed
- 7ce461560159 14.0 landed
-
Rework HashAgg GUCs.
- 13e0fa7ae50c 13.0 landed
- 92c58fd94801 14.0 landed
-
Disk-based Hash Aggregation.
- 1f39bce02154 13.0 cited
-
Implement partition-wise grouping/aggregation.
- e2f1eb0ee30d 11.0 cited
-
Defer creation of partially-grouped relation until it's needed.
- 4f15e5d09de2 11.0 cited