I knew that the delete_function() will reclaim the memory context allocated for the function. But I did not find any code for removing the plan(SPI plan memory context), saved by calling _SPI_save_plan.
Is the plan memory context freed when someone issued CREATE OR REPLACE FUNCTION? Thanks. "Tom Lane" <[email protected]> wrotes:[email protected]... > "Tao Ma" <[email protected]> writes: >> Once we DROP the function, the memory consumed >> by the plan will be leak. > > I'm pretty unconcerned about DROP FUNCTION. The case that seems worth > worrying about is CREATE OR REPLACE FUNCTION, and in that case we'll > reclaim the storage on the next call of the function. > > regards, tom lane > > -- > Sent via pgsql-hackers mailing list ([email protected]) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-hackers > -- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
