From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Matheus Martin <matheus.martin@voidbridge.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Missing query plan for auto_explain.
Date: Tue, 30 Aug 2022 13:07:51 -0400
Message-ID: <3695159.1661879271@sss.pgh.pa.us> (raw)
In-Reply-To: <20220830164512.7oq5g7i256b3zvzp@alvherre.pgsql>
References: <20220830164512.7oq5g7i256b3zvzp@alvherre.pgsql>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, matheus.martin@voidbridge.com
Subject: Re: Missing query plan for auto_explain.
In-Reply-To: <3695159.1661879271@sss.pgh.pa.us>
References: <20220830164512.7oq5g7i256b3zvzp@alvherre.pgsql> <3695159.1661879271@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox