From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Michael <rmichael@edgeofthenet.org>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: How to observe plan_cache_mode transition from custom to generic plan?
Date: Thu, 09 Sep 2021 12:02:00 -0400
Message-ID: <3684101.1631203320@sss.pgh.pa.us> (raw)
In-Reply-To: <CABR0jES9WCCoRCVeG++dqm9TJgdDn-t4UYNiOHEuiCk_NJ-6mA@mail.gmail.com>
References: <CABR0jERKQzmE7G5nDpHDfA+502OAZaNcYY46KL=w1CtdQ1NcQw@mail.gmail.com>
<CAKFQuwYvmmhDjX+StTV8oDVMcPPQ0eTJ-pJep0VSB2RZyy+oNw@mail.gmail.com>
<CABR0jES9WCCoRCVeG++dqm9TJgdDn-t4UYNiOHEuiCk_NJ-6mA@mail.gmail.com>
Richard Michael <rmichael@edgeofthenet.org> writes:
> After reading Laurenz's reply, I experimented again with `PREPARE
> basic(int) AS SELECT $1 AS number;" and the query plan logged in the log
> file (by auto_explain) does indeed show "Output: $1" on the sixth EXPLAIN
> EXECUTE! Sorry I missed this earlier. (The EXPLAIN EXECUTE output itself
> does not contain an "Output:" line, so I didn't notice this lack of
> parameter substitution in psql.)
I think EXPLAIN VERBOSE would add that bit of detail.
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, rmichael@edgeofthenet.org, david.g.johnston@gmail.com
Subject: Re: How to observe plan_cache_mode transition from custom to generic plan?
In-Reply-To: <3684101.1631203320@sss.pgh.pa.us>
References: <CABR0jERKQzmE7G5nDpHDfA+502OAZaNcYY46KL=w1CtdQ1NcQw@mail.gmail.com> <CAKFQuwYvmmhDjX+StTV8oDVMcPPQ0eTJ-pJep0VSB2RZyy+oNw@mail.gmail.com> <CABR0jES9WCCoRCVeG++dqm9TJgdDn-t4UYNiOHEuiCk_NJ-6mA@mail.gmail.com> <3684101.1631203320@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