Re: BUG #19040: Memory leak in hashed subplan node due to missing hashtempcxt reset

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: feichanghong <feichanghong(at)qq(dot)com>
Cc: "李海洋(陌痕)" <mohen(dot)lhy(at)alibaba-inc(dot)com>, ocean_li_996 <ocean_li_996(at)163(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #19040: Memory leak in hashed subplan node due to missing hashtempcxt reset
Date: 2025-09-10 20:18:05
Message-ID: 1612097.1757535485@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

feichanghong <feichanghong(at)qq(dot)com> writes:
> Thanks for the analysis! v04-0002 looks fine to me — please just apply it on
> HEAD.

Done that way.

I thought a bit about your suggestion of adding some kind of
assertion check for memory leaks, but it looks too messy and
specialized as-is. Maybe with reflection we can find a more
generic idea.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Thomas Munro 2025-09-10 22:45:50 Re: PostgreSQL fails to start inside Nix' darwin sandbox
Previous Message Richard Guo 2025-09-10 13:29:41 Re: BUG #19046: Incorrect result when using json_array() with column reference in subquery combined with RIGHT JOIN