X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 2B315D1B965 for ; Fri, 31 Oct 2003 19:13:54 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 58829-03 for ; Fri, 31 Oct 2003 15:13:24 -0400 (AST) Received: from trade-india.com (ns5.trade-india.com [66.234.10.13]) by svr1.postgresql.org (Postfix) with SMTP id 3DD06D1B514 for ; Fri, 31 Oct 2003 15:13:22 -0400 (AST) Received: (qmail 15376 invoked from network); 31 Oct 2003 19:14:37 -0000 Received: from unknown (HELO trade-india.com) (203.145.130.142) by ns5.trade-india.com with SMTP; 31 Oct 2003 19:14:37 -0000 Message-ID: <3FA49979.3070909@trade-india.com> Date: Sun, 02 Nov 2003 00:43:21 -0500 From: Rajesh Kumar Mallah User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030630 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "PGSQL List (E-mail)" Subject: ? in explain query Content-Type: multipart/alternative; boundary="------------000104030403030108020506" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/416 X-Sequence-Number: 10977 This is a multi-part message in MIME format. --------------000104030403030108020506 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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=# --------------000104030403030108020506 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit
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=#

--------------000104030403030108020506--