Re: invalidating cached plans - Mailing list pgsql-hackers

From Tom Lane
Subject Re: invalidating cached plans
Date
Msg-id 11122.1111386368@sss.pgh.pa.us
Whole thread Raw
In response to Re: invalidating cached plans  (Harald Fuchs <use_reply_to@protecting.net>)
List pgsql-hackers
Harald Fuchs <use_reply_to@protecting.net> writes:
> Tom Lane <tgl@sss.pgh.pa.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.

Well, the problem is not so much that we can't tell what depends on
which, as that we have no mechanism to make plan invalidation happen
in the first place.  I don't think that "throw everything away" will
make it very much simpler.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Ali Baba
Date:
Subject: custome exception handling support ?
Next
From: Pavel Stehule
Date:
Subject: Re: custome exception handling support ?