Should i use Limit & Offset in Sql or cursors to handle large data - Mailing list pgsql-novice

From Ascarabina
Subject Should i use Limit & Offset in Sql or cursors to handle large data
Date
Msg-id 4F2ADC42.5070902@gmail.com
Whole thread Raw
List pgsql-novice
Hello,
Just out of curiosity :  On Postgresql ( > 9.0 ) , if i had to iterate
over the table with 3 million records , which method uses less memory &
cpu usage but faster : Using cursor and fetch or just plain SQL with
offset and limit ? And why is the difference ?

Thanks.


pgsql-novice by date:

Previous
From: Windybell
Date:
Subject: Re: PostgreSQL - Debian - Processes: postgres: writer process, etc.
Next
From: Kevin Duffy
Date:
Subject: postgresql on Fedora 16