Skip site navigation (1) Skip section navigation (2)

Profiling a function...

From: Robert Sanford <rsanford(at)trefs(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: Profiling a function...
Date: 2005-01-21 16:57:19
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-performance
How do I profile a user-defined function so that I know which parts of the
function are the ones that are taking the biggest chunk of time?

When I run EXPLAIN on the queries within the function none of them show up
as onerous burdens to the performance. But when they are all operating
together within the function and within the functional logic they become
really expensive. Obviously I've made a mistake somewhere but it isn't
obvious (otherwise it would be fixed already) and I'd prefer having a
profile report telling me what is taking so long rather than guessing and
possibly making things worse.

So is there any way to get a line-by-line timing profile of a user-defined




pgsql-performance by date

Next:From: Richard HuxtonDate: 2005-01-21 17:20:55
Subject: Re: Profiling a function...
Previous:From: Randolf RichardsonDate: 2005-01-21 16:35:38
Subject: Re: PostgreSQL vs. Oracle vs. Microsoft

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group