SQL Functions and plan time

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема SQL Functions and plan time
Дата
Msg-id 200307071938.35320.dev@archonet.com
обсуждение исходный текст
Ответы Re: SQL Functions and plan time
Список pgsql-general
I define an SQL function:

CREATE FUNCTION foo(timestamptz) AS '
...' LANGUAGE 'SQL';

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?

For those new to functions, plpgsql always prepares its plan at "compile" time
so doesn't have actual values available to refine its plan.

--
  Richard Huxton

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