Re: Clearing plans - Mailing list pgsql-general

From Tom Lane
Subject Re: Clearing plans
Date
Msg-id 16778.1169226756@sss.pgh.pa.us
Whole thread Raw
In response to Re: Clearing plans  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> On Thu, Jan 18, 2007 at 10:08:24PM +0100, Peter Kovacs wrote:
>> Are the plans cached per connection? Why not globally?

> Because global plan caching is much harder and nobody has done it yet?

The idea's been discussed before, and there are at least three problems
with it:

* unpredictability of shared-memory requirement

* plan cache would become a contention hot-spot

* much greater need for explicit cache management operations ("restart
your session" would no longer substitute for a flush-the-cache command)

            regards, tom lane

pgsql-general by date:

Previous
From: Howard Cole
Date:
Subject: Query Help
Next
From: "Ed L."
Date:
Subject: Re: Index bloat of 4x