Re: invalidating cached plans

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: invalidating cached plans
Дата
Msg-id 11122.1111386368@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: invalidating cached plans  (Harald Fuchs <use_reply_to@protecting.net>)
Список 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 по дате отправления:

Предыдущее
От: Ali Baba
Дата:
Сообщение: custome exception handling support ?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: custome exception handling support ?