| От | Tom Lane |
|---|---|
| Тема | Re: BUG #5611: SQL Function STABLE promoting to VOLATILE |
| Дата | |
| Msg-id | 5912.1281539906@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: BUG #5611: SQL Function STABLE promoting to VOLATILE (Brian Ceccarelli <bceccarelli@net32.com>) |
| Список | pgsql-bugs |
Brian Ceccarelli <bceccarelli@net32.com> writes:
> STABLE no longer means STABLE. This behavior is killing my performance. I am getting 500% to 30000% increase
inlatency.
You seem to be under the illusion that "stable" is a control knob for a
function result cache. It is not, and never has been. Postgres doesn't
do function result caching.
If you've constructed your app in such a way that it depends on not
inlining SQL set-returning functions, it's fairly easy to defeat that.
From memory, marking a SRF as either strict or volatile will do it
(although volatile might cause you problems elsewhere --- I suspect
your design is pretty brittle in this area).
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера