Re: IMMUTABLE bug ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: IMMUTABLE bug ?
Дата
Msg-id 7652.1130347926@sss.pgh.pa.us
обсуждение исходный текст
Ответ на IMMUTABLE bug ?  (strk <strk@keybit.net>)
Список pgsql-hackers
strk <strk@keybit.net> writes:
> Why is so ? shouldn't the IMMUTABLE keywork make
> it a single call ?

No.  There is no function value cache.  What does happen here is that
the planner folds those calls to constants at plan time, instead of at
run time.  Try
select testme(1) from some-table-with-multiple-rows

and note there's only one call not N.
        regards, tom lane


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: [BUGS] BUG #1993: Adding/subtracting negative
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Libpq optimization