X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 4B3FC529C4 for ; Wed, 6 Jul 2005 20:34:31 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08608-08 for ; Wed, 6 Jul 2005 23:34:22 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.de [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id C3BF65299B for ; Wed, 6 Jul 2005 20:34:20 -0300 (ADT) Received: (qmail invoked by alias); 06 Jul 2005 23:34:21 -0000 Received: from p83.129.182.161.tisdip.tiscali.de (EHLO [192.168.1.4]) [83.129.182.161] by mail.gmx.net (mp024) with SMTP; 07 Jul 2005 01:34:21 +0200 X-Authenticated: #842999 Message-ID: <42CC6A5A.2000605@gmx.de> Date: Thu, 07 Jul 2005 01:33:46 +0200 From: Maik Wiege Organization: end.net User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: Oliver Jowett Cc: pgsql-jdbc@postgresql.org Subject: Re: get row count from a "cursor resultset" References: <42CC2EB6.8020505@gmx.de> <42CC5ACE.5070200@opencloud.com> <42CC5C41.90306@opencloud.com> <42CC604A.9050604@opencloud.com> In-Reply-To: <42CC604A.9050604@opencloud.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/36 X-Sequence-Number: 13184 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