Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOMV8-0004LU-Tt for pgsql-general@arkaria.postgresql.org; Thu, 09 Sep 2021 16:02:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mOMV7-0000Qz-TN for pgsql-general@arkaria.postgresql.org; Thu, 09 Sep 2021 16:02:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOMV7-0000Qa-KQ for pgsql-general@lists.postgresql.org; Thu, 09 Sep 2021 16:02:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mOMV1-0003YM-12 for pgsql-general@postgresql.org; Thu, 09 Sep 2021 16:02:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 189G20Ur3684102; Thu, 9 Sep 2021 12:02:00 -0400 From: Tom Lane To: Richard Michael cc: "David G. Johnston" , "pgsql-general@postgresql.org" Subject: Re: How to observe plan_cache_mode transition from custom to generic plan? In-reply-to: References: Comments: In-reply-to Richard Michael message dated "Thu, 09 Sep 2021 16:58:04 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3684100.1631203320.1@sss.pgh.pa.us> Date: Thu, 09 Sep 2021 12:02:00 -0400 Message-ID: <3684101.1631203320@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Richard Michael 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