Re: how much volatile is a function

Поиск
Список
Период
Сортировка
От Sergey Konoplev
Тема Re: how much volatile is a function
Дата
Msg-id CAL_0b1unuPXu6P6dort_D1-8uUj2fqyL6o8tA0pZnA3RAeo-qg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: how much volatile is a function  (Sergey Konoplev <sergey.konoplev@postgresql-consulting.com>)
Список pgsql-general
On Thu, Jul 12, 2012 at 10:55 PM, Sergey Konoplev
<sergey.konoplev@postgresql-consulting.com> wrote:
> On Thu, Jul 12, 2012 at 10:38 PM, Anibal David Acosta <aa@devshock.com> wrote:
>> Does postgres re run the query on each function call, or has some kind of
>> “flag” indicating that table as not been changed and return cached result of
>> a previous call if the call has same parameters?
>
> It does re-run it on each call.

ps. Do not get confused with IMMUTABLE, STABLE and VOLATILE flags. It
is kind of promising to the planner that the function will behave like
specified.

>
> --
> Sergey Konoplev
>
> a database architect, software developer at PostgreSQL-Consulting.com
> http://www.postgresql-consulting.com
>
> Jabber: gray.ru@gmail.com Skype: gray-hemp Phone: +79160686204



--
Sergey Konoplev

a database architect, software developer at PostgreSQL-Consulting.com
http://www.postgresql-consulting.com

Jabber: gray.ru@gmail.com Skype: gray-hemp Phone: +79160686204

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

Предыдущее
От: Sergey Konoplev
Дата:
Сообщение: Re: how much volatile is a function
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Output of query_to_xml