pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Popeanga Marian <pmarian@cnlo.ro>
To: Rajesh Kumar Mallah <mallah@trade-india.com>
Cc: Roberto Mello <rmello@cc.usu.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: explain
Date: Fri, 21 Mar 2003 10:27:44 +0200
Message-ID: <3E7ACD00.6050702@cnlo.ro> (raw)
References: <3E7AA719.2090507@cnlo.ro>
	<20030321063435.GA6863@cc.usu.edu>
	<3E7AAF87.4070007@cnlo.ro>
	<200303211353.17208.mallah@trade-india.com>

Thanks for your repply.

        This is what i expected too.  Can you point me from where i can 
get this result ?

explain select * from pg_tables where tablename=:tab;


select * from ... ?



In Oracle i will do:
explain plan set statement_id=uniq_id_for_select for  
                select * from dba_tables where table_name=:tab

SELECT * FROM plan_table WHERE Statement_ID = this_uniq_id_for_select;




Rajesh Kumar Mallah wrote:

>
>Dear Marian,
>
>in postgresql 7.3 explain commands retruns as
>set of rows.
>
>The result of EXPLAIN can just be fecthed as result
>of any other SELECT query and manipulated further.
>
>i hope it helps.
>
>sorry if i did not get ur problem rite.
>
>
>regds
>mallah.
>
>
>
>
>On Friday 21 Mar 2003 11:51 am, Popeanga Marian wrote:
>  
>
>>Roberto Mello wrote:
>>
>>    
>>
>>>On Fri, Mar 21, 2003 at 07:46:01AM +0200, Popeanga Marian wrote:
>>> 
>>>
>>>      
>>>
>>>>Hello all,
>>>>
>>>>
>>>>          Can someone point me how can i make explain plan for a query?
>>>>   
>>>>
>>>>        
>>>>
>>>explain select blah from foo where bar = baz;
>>>
>>>\h explain
>>>
>>>Look at the PostgreSQL documentation (SQL Reference).
>>>
>>>-Roberto
>>>
>>> 
>>>
>>>      
>>>
>>   I have look at this command. I want to know how can i make this from 
>>other tool than pgsql.
>>In oracle when i issue an explain plan the explain insert values into a 
>>table ( plan_table ).
>>Then i could select the values from plan_table.         Is there similar 
>>in postgres ?
>>
>>-- 
>>Popeanga Marian
>>DBA Oracle
>>CNLO Romania
>>
>>
>>
>>    
>>
>
>  
>

-- 
Popeanga Marian
DBA Oracle
CNLO Romania

view thread (13+ messages)  latest in thread

Message-ID: <3E7ACD00.6050702@cnlo.ro>
Permalink:  ../3E7ACD00.6050702@cnlo.ro/
Also on:    postgresql.org/message-id/3E7ACD00.6050702@cnlo.ro

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pmarian@cnlo.ro, mallah@trade-india.com, rmello@cc.usu.edu
  Subject: Re: explain
  In-Reply-To: <3E7ACD00.6050702@cnlo.ro>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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