Re: hash_destroy on the hash table allocated with TopMemoryContext

2024-04-17 Thread Ashutosh Bapat
On Wed, Apr 17, 2024 at 1:04 PM Sharique Muhammed wrote: > Hi, > > I was looking for a pattern to destroy a hashtable (dynahash).allocated > in TopMemoryContext > I found one pattern : create_seq_hashtable uses TopMemoryContext > memory context to create hash table. It calls hash_destroy in > R

hash_destroy on the hash table allocated with TopMemoryContext

2024-04-17 Thread Sharique Muhammed
Hi, I was looking for a pattern to destroy a hashtable (dynahash).allocated in TopMemoryContext I found one pattern : create_seq_hashtable uses TopMemoryContext memory context to create hash table. It calls hash_destroy in ResetSequenceCaches. hash_destroy will destroy the memory context(TopMemo