Re: Memory leak with palloc

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Han Holl" <han(dot)holl(at)prismant(dot)nl>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Memory leak with palloc
Date: 2002-12-15 21:05:14
Message-ID: 21215.1039986314@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

A couple weeks ago I said:
> The right long-term solution is to arrange for all query-lifetime data
> to be allocated in a specific context that can be freed in-toto when
> we end the query. To do this cleanly, we have to fix the executor to
> not scribble on plan trees (executor state nodes should point to plan
> nodes, never vice-versa). I've been intending to do that for awhile,
> but it's not done yet ...

Just FYI, this is now done. Your example doesn't leak memory anymore
in CVS tip.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message cbbrowne 2002-12-15 21:40:33 Re: [GENERAL] PostgreSQL Global Development Group
Previous Message CSN 2002-12-15 18:30:39 OIDS