Re: profiling PL/pgSQL? - Mailing list pgsql-performance

From Richard Huxton
Subject Re: profiling PL/pgSQL?
Date
Msg-id 454B311E.9010001@archonet.com
Whole thread Raw
In response to Re: profiling PL/pgSQL?  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
Responses Re: profiling PL/pgSQL?  ("Jonah H. Harris" <jonah.harris@gmail.com>)
Re: profiling PL/pgSQL?  (<korryd@enterprisedb.com>)
List pgsql-performance
A. Kretschmer wrote:
> am  Fri, dem 03.11.2006, um  3:12:14 -0800 mailte Drew Wilson folgendes:
>> I have 700 lines of non-performant pgSQL code that I'd like to
>> profile to see what's going on.
>>
>> What's the best way to profile stored procedures?
>
> RAISE NOTICE, you can raise the aktual time within a transaction with
> timeofday()

Of course you only have very small values of "best" available with
plpgsql debugging.

There's a GUI debugger from EnterpriseDB I believe, but I've no idea how
good it is. Any users/company bods care to let us know?

--
   Richard Huxton
   Archonet Ltd

pgsql-performance by date:

Previous
From: "A. Kretschmer"
Date:
Subject: Re: profiling PL/pgSQL?
Next
From: creimer@brturbo.com.br
Date:
Subject: Context switch storm