Re: Calling the same function more than once with the same arguments

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Calling the same function more than once with the same arguments
Дата
Msg-id 5030.1145489007@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Calling the same function more than once with the same arguments  ("Clodoaldo Pinto" <clodoaldo.pinto@gmail.com>)
Ответы Re: Calling the same function more than once with the  (Scott Marlowe <smarlowe@g2switchworks.com>)
Список pgsql-general
"Clodoaldo Pinto" <clodoaldo.pinto@gmail.com> writes:
> I'm building a function caller() in which a certain function called()
> will be called many times in from clauses with the same arguments and
> I'm wondering if is there a performance penalty for that or if the sql
> engine is smart enough to call called() only once.

No, it isn't.

            regards, tom lane

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

Предыдущее
От: Ben
Дата:
Сообщение: Re: Calling the same function more than once with the same
Следующее
От: Orion
Дата:
Сообщение: locating a primary key