Re: returns numbers of record - Mailing list pgsql-general

From Richard Huxton
Subject Re: returns numbers of record
Date
Msg-id 49366E0B.1010302@archonet.com
Whole thread Raw
In response to returns numbers of record  ("Enrico Pirozzi" <sscotty71@gmail.com>)
List pgsql-general
Enrico Pirozzi wrote:
> Hi all,
> does it exists a way to know how many records a query returns?

Not without fetching the rows. If you're not using a cursor then all the
rows will be fetched anyway and whatever library you're using will
almost certainly have a pg_numrows() function or some such.

--
  Richard Huxton
  Archonet Ltd

pgsql-general by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: concurrent users
Next
From: Gary Schlachter
Date:
Subject: Re: Corruption in postgres 7.4 on solaris 2.9.