| От | Konstantin Knizhnik |
|---|---|
| Тема | Re: [HACKERS] Cached plans and statement generalization |
| Дата | |
| Msg-id | f5d50b64-0c83-369e-3a5b-789a93ed0cbe@postgrespro.ru обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Cached plans and statement generalization (Andres Freund <andres@anarazel.de>) |
| Список | pgsql-hackers |
On 26.04.2017 00:47, Andres Freund wrote: > On 2017-04-25 21:11:08 +0000, Doug Doole wrote: >> When I did this in DB2, I didn't use the parser - it was too expensive. I >> just tokenized the statement and used some simple rules to bypass the >> invalid cases. For example, if I saw the tokens "ORDER" and "BY" then I'd >> disallow replacement replacement until I hit the end of the current >> subquery or statement. > How did you manage plan invalidation and such? The same mechanism as for prepared statements. Cached plans are linked in the list by SaveCachedPlan function and are invalidated by PlanCacheRelCallback. > - Andres > > -- Konstantin Knizhnik Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера