Re: invalidating cached plans

From: Harald Fuchs <use_reply_to(at)protecting(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: invalidating cached plans
Date: 2005-03-14 13:12:39
Message-ID: puvf7u9xrs.fsf@srv.protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In article <6028(dot)1110785150(at)sss(dot)pgh(dot)pa(dot)us>,
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> One possible approach is to do the invalidation on a sufficiently coarse
> grain that we don't care. For example, I would be inclined to make any
> change in a table's schema invalidate all plans that use that table at
> all; that would then subsume the constraint problem for instance. This
> doesn't solve the inlined function problem however.

How about making this even more coarse-grained? Blindly throw all
cached plans away when something in the database DDL changes.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Harald Fuchs 2005-03-14 14:05:52 Re: How to read query plan
Previous Message Dennis Bjorklund 2005-03-14 12:59:45 Re: [BUGS] We are not following the spec for HAVING without