pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Frost <jeff@frostconsultingllc.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: pl/pgsql function spikes CPU 100%
Date: Tue, 24 Apr 2007 02:33:13 -0400
Message-ID: <24506.1177396393@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.64.0704232306500.9190@discord.home.frostconsultingllc.com>
References: <Pine.LNX.4.64.0703160147310.11964@discord.home.frostconsultingllc.com>
	<6522.1174056565@sss.pgh.pa.us>
	<Pine.LNX.4.64.0703160820380.12217@discord.home.frostconsultingllc.com>
	<Pine.LNX.4.64.0703160827490.12217@discord.home.frostconsultingllc.com>
	<Pine.LNX.4.64.0704232306500.9190@discord.home.frostconsultingllc.com>

Jeff Frost <jeff@frostconsultingllc.com> writes:
> Well, finally got this system upgraded to 8.1.8, but unfortunately, that did 
> not resolve this.  Is there any reasonable way to see where this function is 
> spending it's time?

I've grown enamored of oprofile lately --- if you're on a recent Linux
system, try that.  Solaris' DTrace is said to have equivalent
capability.  On other systems you could consider plain 'ol gprof.

Any of these will require a certain amount of man-page-reading :-(

			regards, tom lane



view thread (10+ messages)  latest in thread

Message-ID: <24506.1177396393@sss.pgh.pa.us>
Permalink:  ../24506.1177396393@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24506.1177396393@sss.pgh.pa.us

 · 

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-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jeff@frostconsultingllc.com
  Subject: Re: pl/pgsql function spikes CPU 100%
  In-Reply-To: <24506.1177396393@sss.pgh.pa.us>

* 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