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 19:36:01
Message-ID: 20050429193601.GF28533@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Apr 29, 2005 at 02:38:30PM -0400, Alvaro Herrera wrote:
> 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.

Huh, sorry, this doesn't work ... we don't allow DECLARE for EXPLAIN.
It'd be neat though ...

--
Alvaro Herrera (<alvherre[(at)]dcc(dot)uchile(dot)cl>)
"Aprender sin pensar es inútil; pensar sin aprender, peligroso" (Confucio)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2005-04-29 19:50:47 Re: Tuning queries inside a function
Previous Message Tony Caduto 2005-04-29 18:43:18 Re: ip connection on local p2p network