Re: SELECT slows down on sixth execution

Поиск
Список
Период
Сортировка
От Yves Dorfsman
Тема Re: SELECT slows down on sixth execution
Дата
Msg-id 56224D55.1020907@zioup.com
обсуждение исходный текст
Ответ на Re: SELECT slows down on sixth execution  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Ответы Re: SELECT slows down on sixth execution  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-performance
On 2015-10-14 03:00, Albe Laurenz wrote:
>
> You are encountering "custom plans", introduced in 9.2.
>
> When a statement with parameters is executed, PostgreSQL will not only generate
> a generic plan, but for the first 5 executions it will substitute the arguments
> and generate and execute a custom plan for that.

Wow! Thanks. I feel this should be documented a bit better.

Shouldn't this be explained in at least as much details as in your
explanation, in the sql-prepare document?

Yves.
--
http://yves.zioup.com
gpg: 4096R/32B0F416



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: SELECT slows down on sixth execution
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: SELECT slows down on sixth execution