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-30 03:33:05
Message-ID: 4401.1248924785@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:
> 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.

Hmmm ... good point, those probably won't get cleaned up. In an
environment where functions are getting changed constantly, that
might be worth doing.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-07-30 04:01:46 Re: Patch for 8.5, transformationHook
Previous Message Tom Lane 2009-07-30 03:16:30 Re: RFD: Don't force plpgsql IN parameters to constant