Re: SQL functions, INSERT/UPDATE/DELETE RETURNING, and - Mailing list pgsql-hackers

From Markus Schaber
Subject Re: SQL functions, INSERT/UPDATE/DELETE RETURNING, and
Date
Msg-id 45320295.50300@logix-tt.com
Whole thread Raw
In response to Re: SQL functions, INSERT/UPDATE/DELETE RETURNING, and triggers  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi, Tom,

Tom Lane wrote:
> "Jim C. Nasby" <jim@nasby.net> writes:
>> The specific concern I have is large result sets, like 10s or 100s of MB
>> (or more). We just added support for not buffering those in psql, so it
>> seems like a step backwards to have the backend now buffering it (unless
>> I'm confused on how a tuplestore works...)
>
> Well, a tuplestore can dump to disk, so at least you don't need to worry
> about out-of-memory considerations.

Would it be possible to kinda "wrap" the query execution into the
tuplestore interface, so that the tuples are generated "on the fly" when
fetched from the tuplestore, for large resultsets?

Thanks,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf.     | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org


pgsql-hackers by date:

Previous
From: Markus Schaber
Date:
Subject: Re: GROUP BY on a large table -- an idea
Next
From: Anon Mous
Date:
Subject: Postgresql Caching