Re: number of rows in a cursor

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: "FERREIRA William (COFRAMI)" <william(dot)ferreira(at)airbus(dot)com>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: number of rows in a cursor
Date: 2005-03-07 17:10:27
Message-ID: 20050307171027.GA28398@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Mar 07, 2005 at 05:06:19PM +0100, FERREIRA William (COFRAMI) wrote:

> is it possible to know the number of rows into a cursor ? does any function
> exists ?

Not without scanning the result. See previous discussion:

http://archives.postgresql.org/pgsql-general/2005-01/msg01264.php
http://archives.postgresql.org/pgsql-general/2005-01/msg01312.php

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Hugo Takada 2005-03-07 17:42:48 Restoring db objects , help needed
Previous Message FERREIRA William (COFRAMI) 2005-03-07 16:06:19 number of rows in a cursor