Re: get row count from a "cursor resultset" - Mailing list pgsql-jdbc

From Maik Wiege
Subject Re: get row count from a "cursor resultset"
Date
Msg-id 42CC6A5A.2000605@gmx.de
Whole thread Raw
In response to Re: get row count from a "cursor resultset"  (Oliver Jowett <oliver@opencloud.com>)
Responses Re: get row count from a "cursor resultset"
List pgsql-jdbc
Oliver Jowett wrote:
> Ok, some digging in pgAdmin's svn web interface seems to indicate that
> pgadmin is not actually doing anything special here -- it does the full
> query via libpq's PQexec(), retrieving all the tuples (and hence can
> count them) but only does the work to construct a user interface
> displaying them all after that "lots of rows, retrieve anyway?" dialog
> has been answered.
>
> You could check this by looking at pgadmin's memory footprint while
> retrieving a big resultset.
Thank you for your answers! Yes, this explains it, it is realy using
much memory. But what can I do about my problem? Isn't this a very
common problem? Can't imagine any user querying a database and does not
want to be informed how many results he got...

Thanks for any help
   Maik

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: get row count from a "cursor resultset"
Next
From: Oliver Jowett
Date:
Subject: Re: get row count from a "cursor resultset"