From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Frederic Jolliton <fred-pg@jolliton.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Important speed difference between a query and a
Date: Thu, 24 Apr 2003 10:28:08 -0700 (PDT)
Message-ID: <20030424101802.M2131-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <868ytzsv8y.fsf@mau.localdomain>
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, fred-pg@jolliton.com
Subject: Re: Important speed difference between a query and a
In-Reply-To: <20030424101802.M2131-100000@megazone23.bigpanda.com>
References: <868ytzsv8y.fsf@mau.localdomain> <20030424101802.M2131-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox