Re: BUG #16112: large, unexpected memory consumption - Mailing list pgsql-bugs

From Andres Freund
Subject Re: BUG #16112: large, unexpected memory consumption
Date
Msg-id 20191115024707.y5bcsb4oo4wzovu4@alap3.anarazel.de
Whole thread Raw
In response to Re: BUG #16112: large, unexpected memory consumption  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #16112: large, unexpected memory consumption
List pgsql-bugs
Hi,

On 2019-11-13 13:03:31 -0500, Tom Lane wrote:
> Andres Freund <andres@anarazel.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

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: REINDEX CONCURRENTLY unexpectedly fails
Next
From: Andres Freund
Date:
Subject: Re: REINDEX CONCURRENTLY unexpectedly fails