Re: Strange behaviour ( function cachable )

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Strange behaviour ( function cachable )
Дата
Msg-id 11105.1040238975@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Strange behaviour ( function cachable )  ("Gaetano Mendola" <mendola@bigfoot.com>)
Список pgsql-admin
"Gaetano Mendola" <mendola@bigfoot.com> writes:
> I expected that if a function is cachable and is used
> inside a select like:
> SELECT * FROM foo WHERE id  = my_func( a_param )
> then the function my_func is called one for each different value
> of    a_param.

That is not what "cachable" means to Postgres.  There is no function
result cache such as you seem to envision.

            regards, tom lane

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

Предыдущее
От: "Gaetano Mendola"
Дата:
Сообщение: Strange behaviour ( function cachable )
Следующее
От: HT Levine
Дата:
Сообщение: HELP? Postgres filling up disk