When is the MessageContext released? - Mailing list pgsql-hackers

From Andy Fan
Subject When is the MessageContext released?
Date
Msg-id CAKU4AWqTSs46HULxuWSq4rrAWYkjSqES3DtAQfssqx2xPCtUeQ@mail.gmail.com
Whole thread Raw
Responses Re: When is the MessageContext released?
List pgsql-hackers
Hi :
  I run a query like "select * from t" and set the break like this:

break exec_simple_query
break MemoryContextDelete
  commands
   p context->name
   c
  end

I can see most of the MemoryContext is relased, but never MessageContext,  when will it be released?

/*
* Create the memory context we will use in the main loop.
*
* MessageContext is reset once per iteration of the main loop, ie, upon
* completion of processing of each command message from the client.
*/



Thanks!

pgsql-hackers by date:

Previous
From: Markus Winand
Date:
Subject: Re: Index INCLUDE vs. Bitmap Index Scan
Next
From: Richard Guo
Date:
Subject: Re: NOT IN subquery optimization