From: Richard Huxton <dev@archonet.com>
To: A. Kretschmer <andreas.kretschmer@schollglas.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: profiling PL/pgSQL?
Date: Fri, 03 Nov 2006 12:07:58 +0000
Message-ID: <454B311E.9010001@archonet.com> (raw)
In-Reply-To: <20061103112137.GD15480@a-kretschmer.de>
References: <C19FC1BA-466D-493F-9FDF-4687C4B7962C@gmail.com>
<20061103112137.GD15480@a-kretschmer.de>
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
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-performance@postgresql.org
Cc: dev@archonet.com, andreas.kretschmer@schollglas.com
Subject: Re: profiling PL/pgSQL?
In-Reply-To: <454B311E.9010001@archonet.com>
* 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