about "explain analyze" cannot get detailed analyzed results for queries in a plpgsql function - Mailing list pgsql-general

From Emi Lu
Subject about "explain analyze" cannot get detailed analyzed results for queries in a plpgsql function
Date
Msg-id 442162B3.3030307@encs.concordia.ca
Whole thread Raw
List pgsql-general
Hello,

I am using postgresql 8.0.1. I have a function (Pl/PgSQL) created with
serveral complex queries inside. For example,


create function f1() return void...
begin
...
query 1: insert into ... from A left join B... left join C where ...

query 2: update T1 set ... from (X left join Y .. left join Z .. ) AS M
where M.pkcols = T.pkcols...

query 3:
...
query 10: ...
...
end;


If I ran explain analyze f1(), I only get the total time, but not the
detail analyzed results. Is there a way I can get the detailed  analyzed
results for all queries in the function?

If all queries in the function are not optimized by postgresql, may I
get more detail inputs about the reason please?

Thanks a lot!
Ying





pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg 8.1.3 on AIX
Next
From: Harald Fuchs
Date:
Subject: Re: partial resultset in java