Re: SQL Functions and plan time

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SQL Functions and plan time
Дата
Msg-id 22720.1057642794@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SQL Functions and plan time  (Richard Huxton <dev@archonet.com>)
Ответы Re: SQL Functions and plan time  (nolan@celery.tssi.com)
Re: SQL Functions and plan time  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
Richard Huxton <dev@archonet.com> writes:
> Does the plan for the body get built at creation or execution time? I could
> have sworn it was execution time, but timings on one function suggest
> creation?

It's planned once per query.  There's been some talk of building a
cross-query plan cache for SQL functions, like plpgsql has, but
nothing done yet.

            regards, tom lane

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

Предыдущее
От: "Maksim Likharev"
Дата:
Сообщение: Re: PG crash on simple query, story continues
Следующее
От: nolan@celery.tssi.com
Дата:
Сообщение: Re: SQL Functions and plan time