pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Maik Wiege <mswiege@gmx.de>
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: get row count from a "cursor resultset"
Date: Thu, 07 Jul 2005 01:33:46 +0200
Message-ID: <42CC6A5A.2000605@gmx.de> (raw)
In-Reply-To: <42CC604A.9050604@opencloud.com>
References: <42CC2EB6.8020505@gmx.de>
	<42CC5ACE.5070200@opencloud.com>
	<42CC5C41.90306@opencloud.com>
	<42CC604A.9050604@opencloud.com>

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



view thread (9+ messages)  latest in thread

Message-ID: <42CC6A5A.2000605@gmx.de>
Permalink:  ../42CC6A5A.2000605@gmx.de/
Also on:    postgresql.org/message-id/42CC6A5A.2000605@gmx.de

 · 

reply

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-jdbc@postgresql.org
  Cc: mswiege@gmx.de, oliver@opencloud.com
  Subject: Re: get row count from a "cursor resultset"
  In-Reply-To: <42CC6A5A.2000605@gmx.de>
  References: <42CC2EB6.8020505@gmx.de> <42CC5ACE.5070200@opencloud.com> <42CC5C41.90306@opencloud.com> <42CC604A.9050604@opencloud.com> <42CC6A5A.2000605@gmx.de>

* 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