Re: explain and PARAM_EXEC

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Greg Stark <gsstark(at)mit(dot)edu>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: explain and PARAM_EXEC
Date: 2010-02-20 15:14:24
Message-ID: 417.1266678864@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Sat, Feb 20, 2010 at 7:53 AM, Greg Stark <gsstark(at)mit(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2010-02-20 15:46:35 Re: auto_explain causes regression failures
Previous Message Tom Lane 2010-02-20 15:11:32 Re: explain and PARAM_EXEC