pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-performance@postgresql.org
Subject: Re: profiling PL/pgSQL?
Date: Fri, 3 Nov 2006 12:21:37 +0100
Message-ID: <20061103112137.GD15480@a-kretschmer.de> (raw)
In-Reply-To: <C19FC1BA-466D-493F-9FDF-4687C4B7962C@gmail.com>
References: <C19FC1BA-466D-493F-9FDF-4687C4B7962C@gmail.com>

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()


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47215,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net



view thread (5+ messages)  latest in thread

Message-ID: <20061103112137.GD15480@a-kretschmer.de>
Permalink:  ../20061103112137.GD15480@a-kretschmer.de/
Also on:    postgresql.org/message-id/20061103112137.GD15480@a-kretschmer.de

 · 

reply

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: andreas.kretschmer@schollglas.com
  Subject: Re: profiling PL/pgSQL?
  In-Reply-To: <20061103112137.GD15480@a-kretschmer.de>

* 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