Re: rw_redis_fdw: SQL Errors when statement is within a function

Поиск
Список
Период
Сортировка
От Christoph Moench-Tegeder
Тема Re: rw_redis_fdw: SQL Errors when statement is within a function
Дата
Msg-id 20181025215749.6yy3aparryceuker@squirrel.exwg.net
обсуждение исходный текст
Ответ на Re: rw_redis_fdw: SQL Errors when statement is within a function  (GPT <gptmailinglists@gmail.com>)
Ответы Re: rw_redis_fdw: SQL Errors when statement is within a function
Список pgsql-general
## GPT (gptmailinglists@gmail.com):

> So, this kind of switch after a few goes is a normal behavior or
> something unexpected which will change in future?

It's expected, and even documented (when you look at the user-level
interface):
https://www.postgresql.org/docs/current/static/sql-prepare.html
  Prepared statements can use generic plans rather than re-planning
  with each set of supplied EXECUTE values. This occurs immediately
  for prepared statements with no parameters; otherwise it occurs
  only after five or more executions produce plans whose estimated
  cost average (including planning overhead) is more expensive than
  the generic plan cost estimate.

Regards,
Christoph

-- 
Spare Space.


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: Should pg 11 use a lot more memory building an spgist index?
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Postgresql issue: FATAL: dsa_allocate could not find 7 free pages