Re: Important speed difference between a query and a - Mailing list pgsql-performance

From Stephan Szabo
Subject Re: Important speed difference between a query and a
Date
Msg-id 20030424101802.M2131-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Re: Important speed difference between a query and a  (Frederic Jolliton <fred-pg@jolliton.com>)
Responses Re: Important speed difference between a query and a
List pgsql-performance
On Thu, 24 Apr 2003, Frederic Jolliton wrote:

> > On Thu, 24 Apr 2003, Frederic Jolliton wrote:
> > Perhaps plpgsql with EXECUTE would work better for that, although
> > it's likely to have some general overhead.
>
> The server is rather fast, and the query return 10 to 50 rows in most
> case. So, this is probably a solution, even if it's not very
> clean. (Well, I have to find an example to RETURN the result of
> EXECUTE..)

Check out
http://techdocs.postgresql.org/guides/SetReturningFunctions

specifically the GetRows() function for an example of using for in execute
with set returning functions.


pgsql-performance by date:

Previous
From: Frederic Jolliton
Date:
Subject: Re: Important speed difference between a query and a
Next
From: Frederic Jolliton
Date:
Subject: Re: Important speed difference between a query and a