Re: ? in explain query

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
Cc: "PGSQL List (E-mail)" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: ? in explain query
Date: 2003-10-31 21:13:17
Message-ID: 19798.1067634797@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Rajesh Kumar Mallah <mallah(at)trade-india(dot)com> writes:
> In the explain below are the references
> "outer"."?column2?" = "inner"."?column2?"
> Ok?

Yeah, those are variables that don't have any name because they don't
correspond exactly to table columns. It looks like the plan is
merge-joining (main.id)::text to (groups_1.instance)::text. At the
level of the scans it's possible to see the expressions involved, but
at the level of the join those are just Var references to the outputs
of the lower plan steps.

We could possibly alter EXPLAIN to print the referred-to expression
instead of faking up a name for the Var node, but this would make the
printout look like the expression was being recomputed at the upper
level, which it isn't.

regards, tom lane

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Bruce Momjian 2003-10-31 21:24:54 Re: fishing out LOG: duration lines from the logfile.
Previous Message Jeff 2003-10-31 19:47:37 Re: SELECT COUNT(*)... returns 0 ROWS