Re: Is a clearer memory lifespan for outerTuple and innerTuple useful? - Mailing list pgsql-hackers

From Andy Fan
Subject Re: Is a clearer memory lifespan for outerTuple and innerTuple useful?
Date
Msg-id 874jgjc2mg.fsf@163.com
Whole thread Raw
In response to Is a clearer memory lifespan for outerTuple and innerTuple useful?  (Andy Fan <zhihuifan1213@163.com>)
Responses Re: Is a clearer memory lifespan for outerTuple and innerTuple useful?
List pgsql-hackers
Andy Fan <zhihuifan1213@163.com> writes:

> ...,  I attached the 2 MemoryContext in
> JoinState rather than MergeJoinState, which is for the "shared detoast
> value"[0] more or less.  
>

After thinking more, if it is designed for "shared detoast value" patch
(happens on ExecInterpExpr stage), the inner_tuple_memory and
outer_tuple_memory should be attached to ExprContext rather than
JoinState since it is more natual to access ExprConext (compared with
JoinState) in ExecInterpExpr. I didn't attach a new version for this,
any feedback will be appreciated. 

-- 
Best Regards
Andy Fan




pgsql-hackers by date:

Previous
From: Andy Fan
Date:
Subject: Is a clearer memory lifespan for outerTuple and innerTuple useful?
Next
From: Masahiko Sawada
Date:
Subject: Re: [PoC] Improve dead tuple storage for lazy vacuum