Re: immutable function calling stable function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: immutable function calling stable function
Дата
Msg-id 8578.1090421134@sss.pgh.pa.us
обсуждение исходный текст
Ответ на immutable function calling stable function  (Markus Bertheau <twanger@bluetwanger.de>)
Список pgsql-sql
Markus Bertheau <twanger@bluetwanger.de> writes:
> shouldn't it be illegal for an immutable function to call a stable one?

No, because that's the standard hack for getting around it when you wish
to call a stable function in what you know to be a "safe" way.  If you
look in the archives you'll find cases where creating an immutable
wrapper function was the recommended solution to performance problems.
        regards, tom lane


В списке pgsql-sql по дате отправления:

Предыдущее
От: Rod Taylor
Дата:
Сообщение: Re: date_format in postresql
Следующее
От: Geoff Richards
Дата:
Сообщение: MySQL-style "create temporary table foo select ..."