pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: Melanie Plageman <melanieplageman@gmail.com>
Cc: Jeff Davis <pgsql@j-davis.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Memory Accounting
Date: Wed, 25 Sep 2019 09:47:35 +0900
Message-ID: <20190925004735.GA1815@paquier.xyz> (raw)
In-Reply-To: <20190924115819.5u5i67add5evtea6@development>
References: <027a129b8525601c6a680d27ce3a7172dab61aab.camel@j-davis.com>
	<CAAKRu_aAtcpqFz0fJKAjrvgFUUmYp2mPbeXOPRKWNtJK_Fxa-g@mail.gmail.com>
	<20190724215228.tlyj74ie4l2jn7ji@development>
	<20190924052140.GA1982@paquier.xyz>
	<20190924115819.5u5i67add5evtea6@development>

On Tue, Sep 24, 2019 at 02:05:51PM +0200, Tomas Vondra wrote:
> The way I see it we can do either eager or lazy accounting. Eager might
> work better for aggregates with many contexts, but it does increase the
> overhead for the "regular" aggregates with just one or two contexts.
> Considering how rare those many-context aggregates are (I'm not aware of
> any such aggregate at the moment), it seems reasonable to pick the lazy
> accounting.

Okay.

> So I think the approach Jeff ended up with sensible - certainly as a
> first step. We may improve it in the future, of course, once we have
> more practical experience.
> 
> Barring objections, I do plan to get this committed by the end of this
> CF (i.e. sometime later this week).

Sounds good to me.  Though I have not looked at the patch in details,
the arguments are sensible.  Thanks for confirming.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (28+ messages)  latest in thread

Message-ID: <20190925004735.GA1815@paquier.xyz>
Permalink:  ../20190925004735.GA1815@paquier.xyz/
Also on:    postgresql.org/message-id/20190925004735.GA1815@paquier.xyz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: michael@paquier.xyz, tomas.vondra@2ndquadrant.com, melanieplageman@gmail.com, pgsql@j-davis.com
  Subject: Re: Memory Accounting
  In-Reply-To: <20190925004735.GA1815@paquier.xyz>
  References: <027a129b8525601c6a680d27ce3a7172dab61aab.camel@j-davis.com> <CAAKRu_aAtcpqFz0fJKAjrvgFUUmYp2mPbeXOPRKWNtJK_Fxa-g@mail.gmail.com> <20190724215228.tlyj74ie4l2jn7ji@development> <20190924052140.GA1982@paquier.xyz> <20190924115819.5u5i67add5evtea6@development> <20190925004735.GA1815@paquier.xyz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox