Re: Querying one partition in a function takes locks on all partitions

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Querying one partition in a function takes locks on all partitions
Дата
Msg-id CAApHDvp3EDrVhGjmb21bceJ5-Y7iXKOn2UGG3-ngp_9ob_mpLw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Querying one partition in a function takes locks on all partitions  (Renan Alves Fonseca <renanfonseca@gmail.com>)
Ответы Re: Querying one partition in a function takes locks on all partitions
Re: Querying one partition in a function takes locks on all partitions
Список pgsql-general
On Sat, 29 Mar 2025 at 10:30, Renan Alves Fonseca
<renanfonseca@gmail.com> wrote:
> Currently, in the SQL function path the plan is always generic. The
> planner ignores the function arguments. The plan_cache_mode setting
> has no effect in this path.
>
> I agree that the docs should be more explicit about this. There is a
> high penalty for using generic plans in complex functions.

If you have any suggestions about where you think those should be
added or wording for that, please feel free to suggest.

For the part that's specific to partitioning, I've suggested some
additional wording in the relevant spot in [1].

David

[1] https://postgr.es/m/CAApHDvogvzANoTOCyXUWgEuPFx1nT6S63aAN0bDRSJ=TaGBWew@mail.gmail.com



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