Re: invalidating cached plans
| От | Neil Conway |
|---|---|
| Тема | Re: invalidating cached plans |
| Дата | |
| Msg-id | 42363958.8040001@samurai.com обсуждение исходный текст |
| Ответ на | Re: invalidating cached plans (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Список | pgsql-hackers |
Bruce Momjian wrote: > One idea would be to record if the function uses non-temp tables, temp > tables, or both, and invalidate based on the type of table being > invalidated, rather than the table name itself. I can imagine this > hurting temp table caching, but at least functions using regular tables > would not be affected, and functions using temp tables would work > reliably. It seems to me it's not _that_ difficult to invalidate plans at a more granular level (based on the individual database objects they depend upon). Inlined functions need to be handled, but that is doable -- it just needs some work. The efficiency win of not needlessly throwing away cached plans is worth investing some effort, I think. -Neil
В списке pgsql-hackers по дате отправления: