retrieving parts of a resultset

From: Christoffer Gurell <orbit(at)0x63(dot)nu>
To: pgsql-general(at)postgresql(dot)org
Subject: retrieving parts of a resultset
Date: 2004-02-06 17:04:22
Message-ID: 20040206170422.GA23355@h55p111.delphi.afb.lu.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I want to create a program which displays large tables and makes this possible
over a slow connection. The problem is that when i do a PQexec the entire
retultset is transfered.

I would like to make pqsql process the query but only tranfer the the rows i
ask for when i ask for them. This way i could transfer just the information
currently displayed and not the entire result.

Is this possible or do i have to do a (create temp table as select ...) and
then do (select ... limit ..) in this temporary table?
This would work but i dont think it's a very good solution.

/ Christoffer Gurell

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-02-06 17:04:49 Re: Run 2 versions of Postgresql on one machine?
Previous Message C G 2004-02-06 16:53:47 Getting table attributes