pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: feichanghong <feichanghong@qq.com>
Cc: "李海洋(陌痕)" <mohen.lhy@alibaba-inc.com>
Cc: ocean_li_996 <ocean_li_996@163.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #19040: Memory leak in hashed subplan node due to missing hashtempcxt reset
Date: Wed, 10 Sep 2025 16:18:05 -0400
Message-ID: <1612097.1757535485@sss.pgh.pa.us> (raw)
In-Reply-To: <tencent_9A08D94AF1EF4019609DEA1FA326F61C0908@qq.com>
References: <19040-c9b6073ef814f48c@postgresql.org>
	<58062871.112.1990d3e06ea.Coremail.ocean_li_996@163.com>
	<tencent_8E54DE49323C3A293EE44DFE385011189509@qq.com>
	<808767.1756913726@sss.pgh.pa.us>
	<c765ad39-39eb-4a39-8e67-91bcb9ee65e0.mohen.lhy@alibaba-inc.com>
	<160523.1757190713@sss.pgh.pa.us>
	<bfb8be51-18e5-4839-a555-5c3d0ccd32d0.mohen.lhy@alibaba-inc.com>
	<tencent_0C8392F1FB41065427D6C7AC8919073F8206@qq.com>
	<507583.1757352192@sss.pgh.pa.us>
	<721997.1757364370@sss.pgh.pa.us>
	<tencent_8ED17B52864FA7C5479B890C071A8281D206@qq.com>
	<1073615.1757387109@sss.pgh.pa.us>
	<68ba6c1d-40a8-4aa5-aec1-f0421455bcf5.mohen.lhy@alibaba-inc.com>
	<1239241.1757456662@sss.pgh.pa.us>
	<5c051c2d-116f-4613-ba60-029216f534b3.mohen.lhy@alibaba-inc.com>
	<tencent_9A08D94AF1EF4019609DEA1FA326F61C0908@qq.com>

feichanghong <feichanghong@qq.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





view thread (19+ messages)

Message-ID: <1612097.1757535485@sss.pgh.pa.us>
Permalink:  ../1612097.1757535485@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1612097.1757535485@sss.pgh.pa.us

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, feichanghong@qq.com, mohen.lhy@alibaba-inc.com, ocean_li_996@163.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #19040: Memory leak in hashed subplan node due to missing hashtempcxt reset
  In-Reply-To: <1612097.1757535485@sss.pgh.pa.us>

* 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