Re: Cursor question - Mailing list pgsql-general

From Tim Barnard
Subject Re: Cursor question
Date
Msg-id 008a01c0e53b$78269700$a519af3f@hartcomm.com
Whole thread Raw
In response to Cursor question  ("Tim Barnard" <tbarnard@povn.com>)
List pgsql-general
Disregard my last question. I've found I can use LIMIT
and OFFSET to control the number of records returned.
 
Tim
----- Original Message -----
Sent: Friday, May 25, 2001 9:05 AM
Subject: [GENERAL] Cursor question

When retrieving the tuples from a select query using a cursor, are all of the matching tuples loaded into memory but only passed one at a time to the application using the cursor (I'm retrieving them with "fetch forward 1 in cursor" and using libpq)? Or is only each tuple loaded into memory, one at a time, with each fetch? I'm trying to figure out how much memory I'll need.
 
Tim
 

pgsql-general by date:

Previous
From: Arcady Genkin
Date:
Subject: Bitwise operators in SQL
Next
From: The Hermit Hacker
Date:
Subject: PostgreSQL v7.1.2 Now Available ...