Re: Organize working memory under per-PlanState context - Mailing list pgsql-hackers

From Andrei Lepikhov
Subject Re: Organize working memory under per-PlanState context
Date
Msg-id 7dc34031-fe8b-4ba5-b3d1-2ce87ce91ed8@gmail.com
Whole thread Raw
In response to Re: Organize working memory under per-PlanState context  (Chao Li <li.evan.chao@gmail.com>)
Responses Re: Organize working memory under per-PlanState context
List pgsql-hackers
On 20/8/2025 07:38, Chao Li wrote:
> I know some memory must be retained until the entire query finishes. But 
> those per-node memories, such as hash table, might be destroyed 
> immediately after a node finishes.
I'm not sure I understand your reasoning clearly. How do you know that 
the current subtree will not be rescanned with the same parameter set? 
Building a hash table repeatedly may be pretty costly, no?

-- 
regards, Andrei Lepikhov



pgsql-hackers by date:

Previous
From: Andrei Lepikhov
Date:
Subject: Re: RFC: extensible planner state
Next
From: Andrei Lepikhov
Date:
Subject: Re: Organize working memory under per-PlanState context