Re: Tuning queries inside a function

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Mike Nolan <nolan(at)gw(dot)tssi(dot)com>
Cc: pgsql general list <pgsql-general(at)postgresql(dot)org>
Subject: Re: Tuning queries inside a function
Date: 2005-04-29 18:38:30
Message-ID: 20050429183830.GC28533@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Apr 29, 2005 at 12:32:26PM -0500, Mike Nolan wrote:

> I need to find out if the function can be tuned further, but 'explain'
> doesn't really tell much about what's happening inside the function.
>
> Any ideas on how to tune a user function?

Maybe you could return a refcursor pointing to the EXPLAIN ANALYZE of
the query inside the function.

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"God is real, unless declared as int"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tim 2005-04-29 18:43:00 Re: out of memory for query result
Previous Message raptor 2005-04-29 18:35:56 win-1251 cyrillic support ?