Re: profiling PL/pgSQL?

From: Richard Huxton <dev(at)archonet(dot)com>
To: "A(dot) Kretschmer" <andreas(dot)kretschmer(at)schollglas(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: profiling PL/pgSQL?
Date: 2006-11-03 12:07:58
Message-ID: 454B311E.9010001@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Gregory S. Williamson 2006-11-03 12:50:37 Re: Context switch storm
Previous Message A. Kretschmer 2006-11-03 11:21:37 Re: profiling PL/pgSQL?