Re: Tuning queries inside a function - Mailing list pgsql-general

From Mike Nolan
Subject Re: Tuning queries inside a function
Date
Msg-id 200505021807.j42I78oB001616@gw.tssi.com
Whole thread Raw
In response to Re: Tuning queries inside a function  ("Joshua D. Drake" <jd@commandprompt.com>)
Responses Re: Tuning queries inside a function
List pgsql-general
> Mike Nolan wrote:
> >>select * from foo('bar','debug')
> >
> >
> > But how do I do that inside a pl/pgsql function?  'select into' doesn't
> > seem to work properly.
>
>
> You would have to code it. For example:
>
> IF $2 = ''debug'' THEN:

That part I get, but I cannot seem to get an 'explain select....' to return
the explain output inside a function.
--
Mike Nolan

pgsql-general by date:

Previous
From: Marko Kreen
Date:
Subject: Re: Using pgcrypto with AES-256 bits?
Next
From: "Joshua D. Drake"
Date:
Subject: Re: Tuning queries inside a function