Re: BUG #2150: PL/Python function delcared STABLE gets run repeatedly
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #2150: PL/Python function delcared STABLE gets run repeatedly |
| Дата | |
| Msg-id | 16701.1136576939@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: BUG #2150: PL/Python function delcared STABLE gets run repeatedly ("Jim C. Nasby" <jnasby@pervasive.com>) |
| Ответы |
Re: BUG #2150: PL/Python function delcared STABLE gets run repeatedly
|
| Список | pgsql-bugs |
"Jim C. Nasby" <jnasby@pervasive.com> writes:
> Is caching of results for STABLE/IMMUTABLE functions called with a
> constant something that would be reasonable to add?
I tend to think not: the distributed overhead would outweigh the
advantages. See previous discussions in the archives.
(However, the previous discussions have imagined an explicit cache
that stores function names, arguments, and results. Your thought
of transforming the call into an InitPlan node might be interesting.
The trick is still to know which functions are expensive enough to
justify the overhead of an InitPlan.)
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера