Re: Querying one partition in a function takes locks on all partitions - Mailing list pgsql-general

From Laurenz Albe
Subject Re: Querying one partition in a function takes locks on all partitions
Date
Msg-id f29565cb8b0cea781e6334c94c89d9b575a8023a.camel@cybertec.at
Whole thread Raw
In response to Re: Querying one partition in a function takes locks on all partitions  (Renan Alves Fonseca <renanfonseca@gmail.com>)
Responses Re: Querying one partition in a function takes locks on all partitions
List pgsql-general
On Mon, 2025-03-31 at 18:41 +0200, Renan Alves Fonseca wrote:
> I would add another Note below like:
> "Except when inlined, an SQL function is always executed with a
> generic plan. This behavior may not be desired in some situations, and
> it will be fixed in future versions."

But that is not true, as far as I can tell: just like any other prepared
statement, it may keep using custom plans.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Renan Alves Fonseca
Date:
Subject: Re: Querying one partition in a function takes locks on all partitions
Next
From: "David G. Johnston"
Date:
Subject: Re: Querying one partition in a function takes locks on all partitions