On 2019/03/14 16:32, Kyotaro HORIGUCHI wrote: > At Thu, 14 Mar 2019 16:13:23 +0900, Amit Langote > <[email protected]> wrote in > <[email protected]> >> Hi, >> >> I'm curious why DestroyPartitionDirectory doesn't do >> hash_destroy(pdir->pdir_hash)? > > Maybe it is trashed involved in destruction of es_query_cxt or > planner_cxt?
Hmm, the executor's partition directory (its hash table) is indeed allocated under es_query_cxt. But, the planner's partition directory is not allocated under planner_cxt, it appears to be using memory under MessageContext. Thanks, Amit
