Re: Calling the same function more than once with the

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Calling the same function more than once with the
Дата
Msg-id 1145542319.23538.127.camel@state.g2switchworks.com
обсуждение исходный текст
Ответ на Re: Calling the same function more than once with the same arguments  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Wed, 2006-04-19 at 18:23, Tom Lane wrote:
> "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.

HOWEVER, depending on how you declare the function, you should be able
to index it.

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

Предыдущее
От: "Jim Buttafuoco"
Дата:
Сообщение: Re: Query to check existence of stored procedure?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: FW: code to cancel a running query, worker thread