Re: Cursor rowcount

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: typea(at)l-i-e(dot)com
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Cursor rowcount
Date: 2003-01-13 22:22:10
Message-ID: 6429.1042496530@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

<typea(at)l-i-e(dot)com> writes:
> I'm not finding any way in the docs of asking a cursor how many rows total
> are in the result set, even if I do "move 1000000 in foo", knowing a
> priori that 1000000 is far more than could be returned.

regression=# begin;
BEGIN
regression=# declare c cursor for select * from int8_tbl;
DECLARE CURSOR
regression=# move all in c;
MOVE 5 <-----------------------
regression=# end;
COMMIT

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Josh Berkus 2003-01-13 22:32:47 Re: Multiple databases
Previous Message typea 2003-01-13 21:33:19 Cursor rowcount