Re: BUG #19040: Memory leak in hashed subplan node due to missing hashtempcxt reset - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #19040: Memory leak in hashed subplan node due to missing hashtempcxt reset
Date
Msg-id 1073615.1757387109@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #19040: Memory leak in hashed subplan node due to missing hashtempcxt reset  (feichanghong <feichanghong@qq.com>)
Responses 回复:BUG #19040: Memory leak in hashed subplan node due to missing hashtempcxt reset
List pgsql-bugs
feichanghong <feichanghong@qq.com> writes:
> For v04-0002, I checked the commit history, and before commit 133924e1,
> buildSubPlanHash was using ecxt_per_tuple_memory. It seems that the
> "Subplan HashTable Temp Context" was introduced in order to fix a certain bug.

It was a different ExprContext's ecxt_per_tuple_memory, though.
This one is owned locally by the TupleHashTable.

            regards, tom lane



pgsql-bugs by date:

Previous
From: feichanghong
Date:
Subject: Re: BUG #19040: Memory leak in hashed subplan node due to missing hashtempcxt reset
Next
From: "李海洋(陌痕)"
Date:
Subject: 回复:BUG #19040: Memory leak in hashed subplan node due to missing hashtempcxt reset