Re: question about the _SPI_save_plan() and plan cache

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Tao Ma" <feng_eden(at)163(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: question about the _SPI_save_plan() and plan cache
Date: 2009-07-28 14:35:01
Message-ID: 25310.1248791701@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Teodor Sigaev 2009-07-28 15:01:30 Re: Filtering dictionaries support and unaccent dictionary
Previous Message Merlin Moncure 2009-07-28 14:34:36 Re: [RFC] new digest datatypes, or generic fixed-len hex types?