Serialize the aggstates while spilling hash table
AggStates are now pointers allocated in aggcontext with type INTERNAL, just spilling the pointers don't decrease the memory usage and have possible memory leak if combining states without free. This commit serialize the aggstates, write the real data into file and free the memory. (cherry picked from commit 6dadce04)
Showing
想要评论请 注册 或 登录