Gevik Babakhani wrote: > > On backend exit, everything in TopMemoryContext, like all > > other non-shared memory, is automatically released. > > So it is safe to not free the allocated memory in TopMemoryContext and leave > it to be released on backend exit.
All local memory is safe to handle that way. The problem only arises when you have memory to release _earlier_ than that. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support ---------------------------(end of broadcast)--------------------------- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly