Re: DBD::Pg/perl question, kind of...

From: Douglas McNaught <doug(at)mcnaught(dot)org>
To: "Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at>
Cc: "Neal Clark *EXTERN*" <nclark(at)securescience(dot)net>, "PostgreSQL General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: DBD::Pg/perl question, kind of...
Date: 2007-03-12 12:38:52
Message-ID: 877itmljqb.fsf@suzuka.mcnaught.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Albe Laurenz" <all(at)adv(dot)magwien(dot)gv(dot)at> writes:

> So there is no automatic way of handling it.
>
> You will probably have to consider it in your code and use
> SELECT-Statements
> with a LIMIT clause.

Either that, or explicitly DECLARE a CURSOR and use FETCH from that
cursor in batches. You can do this in Perl even though the automatic
cursor support is not yet there. You are restricted to staying in a
transaction while the cursor is open, so if you want to work outside
of transactions LIMIT/OFFSET is your only way.

-Doug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2007-03-12 12:58:19 Re: Getting Text data as C string
Previous Message Denis Gasparin 2007-03-12 11:47:34 Getting Text data as C string