From: | Christoph Haller <ch(at)rodos(dot)fzk(dot)de> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Cc: | darko(dot)prenosil(at)finteh(dot)hr |
Subject: | Re: I cant find it or I'm just lazy ? |
Date: | 2003-02-25 13:04:50 |
Message-ID: | 3E5B69F2.FE6C907F@rodos.fzk.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | mlw | 2003-02-25 13:13:27 | Re: ILIKE |
Previous Message | Darko Prenosil | 2003-02-25 12:47:56 | Re: I cant find it or I'm just lazy ? |