Re: Clearing plans

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Cc: Peter Kovacs <peter(dot)kovacs(dot)1(dot)0rc(at)gmail(dot)com>, Scott Ribe <scott_ribe(at)killerbytes(dot)com>, "pgsql-general postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Clearing plans
Date: 2007-01-19 17:12:36
Message-ID: 16778.1169226756@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martijn van Oosterhout <kleptog(at)svana(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ed L. 2007-01-19 17:19:52 Re: Index bloat of 4x
Previous Message Howard Cole 2007-01-19 17:05:30 Query Help