From: Sergei Barbarash <sgt@israel.ru>
To: pgsql-sql@postgresql.org
Subject: cursor results count
Date: Wed, 05 Aug 1998 17:35:59 +0400
Message-ID: <199808051335.RAA22788@zaraza.dot.ru> (raw)
Hello,
I need to retrieve one random tuple from a big set of tuples returned by a
certain query. So my question is:
How can I find out the number of tuples returned by cursor, without actually
FETCHing ALL? (So I can MOVE then to that location and just FETCH 1).
Thanks,
-- Sergei
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: sgt@israel.ru
Subject: Re: cursor results count
In-Reply-To: <199808051335.RAA22788@zaraza.dot.ru>
References: <199808051335.RAA22788@zaraza.dot.ru>
* 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