"Tao Ma" <feng_eden(at)163(dot)com> 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