Re: "explain analyze" a procedure verbosely - to find which statement in it takes longer - Mailing list pgsql-general

From Alban Hertroys
Subject Re: "explain analyze" a procedure verbosely - to find which statement in it takes longer
Date
Msg-id CAF-3MvOGU5VjK2Sd1Amu_FvL+a8jmnTRFwXC=fP=UJx-w-0=Zw@mail.gmail.com
Whole thread Raw
In response to "explain analyze" a procedure verbosely - to find which statement in it takes longer  (Alexander Farber <alexander.farber@gmail.com>)
List pgsql-general
On 6 February 2013 11:03, Alexander Farber <alexander.farber@gmail.com>wrote:

>                 begin
>
>                 insert into pref_ban2 select
>                         id,
>                         first_name,
>                         last_name,
>                         city,
>                         last_ip
>                 from pref_users where id=_id;
>
>                 update pref_ban2 set reason=_reason where id=_id;
>

It's not the answer to your query, but why don't you do the above in a
single statement?

--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.

pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: "explain analyze" a procedure verbosely - to find which statement in it takes longer
Next
From: drew_hunt1976@yahoo.co.jp
Date:
Subject: Need help understanding WAL and checkpoints