Re: invalidating cached plans

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: invalidating cached plans
Дата
Msg-id 42353EF1.6060807@samurai.com
обсуждение исходный текст
Ответ на Re: invalidating cached plans  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: invalidating cached plans  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> I would like to see this folded together with creation of a centralized
> plan caching module.

Interesting. Can you elaborate on how you'd envision call sites making 
use of this module?

> The difficulty with this after-the-fact approach is that the finished
> plan tree may contain no reference to some objects that it in fact
> depends on.  SQL functions that have been inlined are the classic
> example, but consider also the idea that a plan may have been made on
> the strength of a table constraint (see nearby thread about partitioning)
> and needs to be invalidated if that constraint goes away.

Hmm, good point. I'm happy to blow away all cached plans when a table 
constraint changes, so that resolves that, but I agree we'll need to 
handle inlined functions specially. But perhaps it is best to not rely 
on after-the-fact Plan analysis at all, and build the capability to 
record plan dependencies directly into the planner.

-Neil


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Christopher Kings-Lynne
Дата:
Сообщение: options in conninfo
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: int64/double for time/timestamp