Re: BUG #18950: pgsql function that worked in Postgresql 16 does not return in Postgresql 17

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #18950: pgsql function that worked in Postgresql 16 does not return in Postgresql 17
Дата
Msg-id 81946.1749348479@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #18950: pgsql function that worked in Postgresql 16 does not return in Postgresql 17  (Lowell Hought <lowell.hought@gmail.com>)
Ответы Re: BUG #18950: pgsql function that worked in Postgresql 16 does not return in Postgresql 17
Список pgsql-bugs
Lowell Hought <lowell.hought@gmail.com> writes:
> If I run the query outside of the function it works as expected.  But the function never returns.

This isn't that surprising either: a query inside a function is
often translated into a "generic" plan that doesn't depend on
specific parameter values, typically sacrificing runtime to
avoid repeated planning.  Does it get any better if you do
"set plan_cache_mode = force_custom_plan" before running the
function?

            regards, tom lane



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