Re: I cant find it or I'm just lazy ? - Mailing list pgsql-hackers

From Christoph Haller
Subject Re: I cant find it or I'm just lazy ?
Date
Msg-id 3E5B69F2.FE6C907F@rodos.fzk.de
Whole thread Raw
In response to I cant find it or I'm just lazy ?  (Darko Prenosil <darko.prenosil@finteh.hr>)
Responses Re: I cant find it or I'm just lazy ?
List pgsql-hackers
>
> On Tuesday 25 February 2003 09:28, Christoph Haller wrote:
> > > On Mon, Feb 24, 2003 at 07:53:05PM +0000, Darko Prenosil wrote:
> > > >     I need two answers I did not find in documentation :
> > > > How can I get exact number of rows in DECLARED CURSOR ?
> > > > OK, I can FETCH until NULL, but this does not fits my needs !
> >
> > You may want to use FETCH ALL, otherwise what or your needs in
detail?
> >
> If I use FETCH ALL all, all the data will be sent to client, then why
to use
> CURSOR at all ? I need to reduce network trafic on slow connections !
>
I cannot see how you are going to reduce network traffic by knowing in
advance
how many rows will be returned.
Anyway, you may MOVE until 0 instead of FETCH, or use the COUNT()
function on the query to learn about the number of rows to be returned.

Regards, Christoph




pgsql-hackers by date:

Previous
From: Christoph Haller
Date:
Subject: Re: I cant find it or I'm just lazy ?
Next
From: mlw
Date:
Subject: Re: ILIKE