| От | Leif Biberg Kristensen |
|---|---|
| Тема | Re: How do you control IMMUTABLE PG PROC results? |
| Дата | |
| Msg-id | 201011050248.52574.leif@solumslekt.org обсуждение исходный текст |
| Ответ на | How do you control IMMUTABLE PG PROC results? ("Carlo Stonebanks" <stonec.register@sympatico.ca>) |
| Список | pgsql-general |
On Friday 5. November 2010 01.24.14 Carlo Stonebanks wrote: > We have procs that would benefit from returning IMMUTABLE results. The procs > are dependent on external tables that rarely change, but when they DO > change, it would be great if we could expire the cache that the procs read > from so that the procs are forced to re-evaluate the results. A function declared as IMMUTABLE can't, by definition, do database lookups. Then it has to be declared as STABLE. <http://www.postgresql.org/docs/8.4/static/xfunc-volatility.html> «An IMMUTABLE function cannot modify the database and is guaranteed to return the same results given the same arguments forever.» regards, Leif B. Kristensen
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера