Re: Cache plan invalidation

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Cache plan invalidation
Дата
Msg-id 200705051448.l45Em9a22750@momjian.us
обсуждение исходный текст
Ответ на Cache plan invalidation  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Cache plan invalidation  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:
> The current TODO list has:
> 
>     Dependency Checking
>     ===================
>     
>     * Flush cached query plans when the dependent objects change,
>       when the cardinality of parameters changes dramatically, or
>       when new ANALYZE statistics are available
>     
>       A more complex solution would be to save multiple plans for different
>       cardinality and use the appropriate plan based on the EXECUTE values.
>     
>     * Track dependencies in function bodies and recompile/invalidate
>     
>       This is particularly important for references to temporary tables
>       in PL/PgSQL because PL/PgSQL caches query plans.  The only workaround
>       in PL/PgSQL is to use EXECUTE.  One complexity is that a function
>       might itself drop and recreate dependent tables, causing it to
>       invalidate its own query plan.
> 
> Which of these are done or not done?

Also, is this done:
* Invalidate prepared queries, like INSERT, when the table definition  is altered

--  Bruce Momjian  <bruce@momjian.us>          http://momjian.us EnterpriseDB
http://www.enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: storage of sensor data with Fourier transforms
Следующее
От: Stefan Kaltenbrunner
Дата:
Сообщение: Patch Status in the wiki