Re: How to observe plan_cache_mode transition from custom to generic plan?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Michael <rmichael(at)edgeofthenet(dot)org>
Cc: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to observe plan_cache_mode transition from custom to generic plan?
Date: 2021-09-09 16:02:00
Message-ID: 3684101.1631203320@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Richard Michael <rmichael(at)edgeofthenet(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Michael 2021-09-09 16:09:05 Re: How to observe plan_cache_mode transition from custom to generic plan?
Previous Message Richard Michael 2021-09-09 14:58:04 Re: How to observe plan_cache_mode transition from custom to generic plan?