Re: explain and PARAM_EXEC

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Greg Stark <gsstark@mit.edu>, pgsql-hackers@postgresql.org
Date: 2010-02-20T15:14:24Z
Lists: pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Sat, Feb 20, 2010 at 7:53 AM, Greg Stark <gsstark@mit.edu> wrote:
>> Perhaps it would be clearer to display the "(Subplan 1)" in a function
>> call style format like Subplan1(b.oid)

> I thought about that, too...  maybe for 9.1 we should consider it.  It
> might be nice to add some sort of glyph to make the user less likely
> to think that Subplan1 is in fact a function. <Subplan1>(b.oid)?
> ${Subplan1}(b.oid)?  I dunno.

You really can't escape the need to identify which $N symbol is
associated with which parameter value.  As soon as you've got more than
one subplan in a query, that becomes a nontrivial thing for a user to
guess.

			regards, tom lane