pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedRe: ? in explain query
2+ messages / 2 participants
[nested] [flat]
* Re: ? in explain query
@ 2003-10-31 21:13 Tom Lane <tgl@sss.pgh.pa.us>
parent: Rajesh Kumar Mallah <mallah@trade-india.com>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2003-10-31 21:13 UTC (permalink / raw)
To: Rajesh Kumar Mallah <mallah@trade-india.com>; +Cc: pgsql-admin
Rajesh Kumar Mallah <mallah@trade-india.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
^ permalink raw reply [nested|flat] 2+ messages in thread
* ? in explain query
@ 2003-11-02 05:43 Rajesh Kumar Mallah <mallah@trade-india.com>
0 siblings, 1 reply; 2+ messages in thread
From: Rajesh Kumar Mallah @ 2003-11-02 05:43 UTC (permalink / raw)
To: pgsql-admin
Hi ,
In the explain below are the references
"outer"."?column2?" = "inner"."?column2?"
Ok?
rt3=# SELECT version();
version
----------------------------------------------------------------
PostgreSQL 7.4beta5 on i686-pc-linux-gnu, compiled by GCC 2.96
(1 row)
rt3=# explain analyze SELECT count(*) from Tickets main JOIN Groups as
Groups_1 ON ( main.id = Groups_1.Instance);
QUERY PLAN
----------------------------------------------------------------------------------------------------------------------------------------
Aggregate (cost=9047.54..9047.54 rows=1 width=0) (actual
time=2210.017..2210.018 rows=1 loops=1)
-> Merge Join (cost=7838.44..8914.51 rows=53211 width=0) (actual
time=1480.912..2111.089 rows=47152 loops=1)
Merge Cond: ("outer"."?column2?" = "inner"."?column2?")
-> Sort (cost=1057.51..1083.58 rows=10431 width=4) (actual
time=124.539..137.337 rows=10431 loops=1)
Sort Key: (main.id)::text
-> Seq Scan on tickets main (cost=0.00..361.31
rows=10431 width=4) (actual time=0.032..34.973 rows=10431 loops=1)
-> Sort (cost=6780.93..6936.18 rows=62097 width=8) (actual
time=1356.213..1483.773 rows=62097 loops=1)
Sort Key: (groups_1.instance)::text
-> Seq Scan on groups groups_1 (cost=0.00..1336.97
rows=62097 width=8) (actual time=0.017..170.204 rows=62097 loops=1)
Total runtime: 2216.263 ms
(10 rows)
rt3=#
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-11-02 05:43 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-11-02 05:43 ? in explain query Rajesh Kumar Mallah <mallah@trade-india.com>
2003-10-31 21:13 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox