Re: Default setting for enable_hashagg_disk

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: David Rowley <dgrowleyml(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Stephen Frost <sfrost(at)snowman(dot)net>, Peter Geoghegan <pg(at)bowt(dot)ie>, Jeff Davis <pgsql(at)j-davis(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, Bruce Momjian <bruce(at)momjian(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com>, Justin Pryzby <pryzby(at)telsasoft(dot)com>, Melanie Plageman <melanieplageman(at)gmail(dot)com>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Default setting for enable_hashagg_disk
Date: 2020-07-11 01:53:23
Message-ID: CAKFQuwYya1+My6rDxHO1O4Eg=1c3bFdy42LcHKRiEf_E7cBR+A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers

On Fri, Jul 10, 2020 at 6:43 PM David Rowley <dgrowleyml(at)gmail(dot)com> wrote:

> On Sat, 11 Jul 2020 at 13:36, David G. Johnston
> <david(dot)g(dot)johnston(at)gmail(dot)com> wrote:
> > If we add a setting that defaults to work_mem then the benefit is
> severely reduced. You still have to modify individual queries, but the
> change can simply be more targeted than changing work_mem alone.
>
> I think the idea is that this is an escape hatch to allow users to get
> something closer to what PG12 did, but only if they really need it. I
> can't quite understand why we need to leave the escape hatch open and
> push them halfway through it. I find escape hatches are best left
> closed until you really have no choice but to use them.
>
>
The escape hatch dynamic is "the user senses a problem, goes into their
query, and modifies some GUCs to make the problem go away". As a user
I'd much rather have the odds of my needing to use that escape hatch
reduced - especially if that reduction can be done without risk and without
any action on my part.

It's like having someone in a box right now, and then turning up the heat.
We can give them an opening to get out of the box if they need it but we
can also give them A/C. For some the A/C may be unnecessary, but also not
harmful, while a smaller group will stay in the margin, while for the
others it's not enough and use the opening (which they would have done
anyway without the A/C).

David J.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Peter Geoghegan 2020-07-11 02:02:27 Re: Default setting for enable_hashagg_disk
Previous Message David Rowley 2020-07-11 01:43:28 Re: Default setting for enable_hashagg_disk

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2020-07-11 02:02:27 Re: Default setting for enable_hashagg_disk
Previous Message David Rowley 2020-07-11 01:43:28 Re: Default setting for enable_hashagg_disk