From: Russell Simpkins <russellsimpkins@hotmail.com>
To: Bo Lorentsen <bl@netgroup.dk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Number of rows in a cursor ?
Date: Wed, 24 Aug 2005 07:36:29 -0400
Message-ID: <BAY103-DAV72BF461390EA073012267B5A80@phx.gbl> (raw)
References: <B74B7433CDDD2C4AA41D94832E32E19D92EE9A@EMEXM1112.dir.svc.accenture.com>
<430C4C70.2010005@netgroup.dk>
> neil.saunders@accenture.com wrote:
>
>>You cannot count the number of rows in a cursor, unfortunately. I recently
>>ran in to this problem.
>>
> How sad, then I have to repeat the query, first for counting and last for
> data fetch :-(
>
> /BL
>
If you need a count, why not just execute one of the methods to get a count.
i.e.e select count(id) ...
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: russellsimpkins@hotmail.com, bl@netgroup.dk
Subject: Re: Number of rows in a cursor ?
In-Reply-To: <BAY103-DAV72BF461390EA073012267B5A80@phx.gbl>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox