Re: BUG #16112: large, unexpected memory consumption

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, ben(at)lantern(dot)is, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #16112: large, unexpected memory consumption
Date: 2019-11-15 02:47:07
Message-ID: 20191115024707.y5bcsb4oo4wzovu4@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi,

On 2019-11-13 13:03:31 -0500, Tom Lane wrote:
> Andres Freund <andres(at)anarazel(dot)de> writes:
> > Thinking about it for a second longer, I don't think we'd need a new
> > context - afaict argcontext has exactly the lifetime requirements
> > needed.
>
> Hm, maybe so. That'd definitely be a better solution if it works.

Here's a patch doing so. I think it'd be a good idea to rename
argcontext into something like setcontext or such. But as I'm not that
happy with the name, I've not yet made that change.

Greetings,

Andres Freund

Attachment Content-Type Size
leakplug.diff text/x-diff 3.8 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Andres Freund 2019-11-15 02:54:12 Re: REINDEX CONCURRENTLY unexpectedly fails
Previous Message Michael Paquier 2019-11-15 02:45:12 Re: REINDEX CONCURRENTLY unexpectedly fails