Re: Missing query plan for auto_explain. - Mailing list pgsql-general

From Tom Lane
Subject Re: Missing query plan for auto_explain.
Date
Msg-id 3695159.1661879271@sss.pgh.pa.us
Whole thread Raw
In response to Re: Missing query plan for auto_explain.  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-general
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2022-Aug-30, Matheus Martin wrote:
>> Good idea on using an actual prepared statement but unfortunately it didn't
>> produce any different result.

> I should have also mentioned to try the EXPLAIN EXECUTE six times and
> see if the last one produces a different plan.  That's when it switches
> from planning every time to planning with generic arguments, as I
> recall.

In recent versions you can bypass that with

SET plan_cache_mode = force_generic_plan;

            regards, tom lane



pgsql-general by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Missing query plan for auto_explain.
Next
From: Kristjan Mustkivi
Date:
Subject: CREATE SUBSCRIPTION not picking up .pgpass while psql does