Re: thousands of CachedPlan entry per backend

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: thousands of CachedPlan entry per backend
Дата
Msg-id 7bbe7bf1fa86dc075d2b655fdadd08fa99180212.camel@cybertec.at
обсуждение исходный текст
Ответ на RE: thousands of CachedPlan entry per backend  ("James Pang (chaolpan)" <chaolpan@cisco.com>)
Ответы RE: thousands of CachedPlan entry per backend  ("James Pang (chaolpan)" <chaolpan@cisco.com>)
Список pgsql-performance
On Thu, 2023-06-01 at 08:50 +0000, James Pang (chaolpan) wrote:
> we found thousands of cached plan , since JDBC driver only allow max 256 cached
> prepared statements, how backend cache so many sql plans. If we have one function,
> when application call that function will make backend to cache  every SQL statement
> plan in that function too?   and for table triggers, have similar caching behavior ?

Yes, as long as the functions are written in PL/pgSQL.
It only affects static SQL, that is, nothing that is run with EXECUTE.

Yours,
Laurenz Albe



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

Предыдущее
От: "James Pang (chaolpan)"
Дата:
Сообщение: RE: thousands of CachedPlan entry per backend
Следующее
От: Sergio Rus
Дата:
Сообщение: Re: How to reduce latency with fast short queries in Postgresql 15.3 on a NUMA server