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: Tue, 24 Sep 2019 14:21:40 +0900
Message-ID: <20190924052140.GA1982@paquier.xyz> (raw)
In-Reply-To: <20190724215228.tlyj74ie4l2jn7ji@development>
References: <027a129b8525601c6a680d27ce3a7172dab61aab.camel@j-davis.com>
<CAAKRu_aAtcpqFz0fJKAjrvgFUUmYp2mPbeXOPRKWNtJK_Fxa-g@mail.gmail.com>
<20190724215228.tlyj74ie4l2jn7ji@development>
On Wed, Jul 24, 2019 at 11:52:28PM +0200, Tomas Vondra wrote:
> I think Heikki was asking about places with a lot of sub-contexts, which a
> completely different issue. It used to be the case that some aggregates
> created a separate context for each group - like array_agg. That would
> make Jeff's approach to accounting rather inefficient, because checking
> how much memory is used would be very expensive (having to loop over a
> large number of contexts).
The patch has been marked as ready for committer for a week or so, but
it seems to me that this comment has not been addressed, no? Are we
sure that we want this method if it proves to be inefficient when
there are many sub-contexts and shouldn't we at least test such
scenarios with a worst-case, customly-made, function?
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: <20190924052140.GA1982@paquier.xyz>
References: <027a129b8525601c6a680d27ce3a7172dab61aab.camel@j-davis.com> <CAAKRu_aAtcpqFz0fJKAjrvgFUUmYp2mPbeXOPRKWNtJK_Fxa-g@mail.gmail.com> <20190724215228.tlyj74ie4l2jn7ji@development> <20190924052140.GA1982@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