X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 7B8949FB26C for ; Wed, 12 Jul 2006 18:46:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 81065-06 for ; Wed, 12 Jul 2006 18:46:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 31A469FB390 for ; Wed, 12 Jul 2006 18:46:07 -0300 (ADT) Received: from 203-118-178-246.bliink.ihug.co.nz ([203.118.178.246] helo=[10.1.1.6]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1G0mWx-0000B1-ED; Thu, 13 Jul 2006 09:46:03 +1200 Message-ID: <44B56D9A.5030302@opencloud.com> Date: Thu, 13 Jul 2006 09:46:02 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.8 (X11/20060502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Albert Cardona CC: pgsql-jdbc@postgresql.org, "Nicholas E. Wakefield" Subject: Re: how to monitor the amount of bytes fetched in a executeQuery() References: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.com> <200607120856.12722.acardona@ini.phys.ethz.ch> In-Reply-To: <200607120856.12722.acardona@ini.phys.ethz.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/51 X-Sequence-Number: 15477 Albert Cardona wrote: > Also, the ability to monitor the amount of bytes loaded would be an nice > addition to the driver itself. Perhaps a small Monitor class that extends > Thread, which monitors the receiving InputStream and provides a single > getLoadedBytes() method? Well, there's only one InputStream per connection really.. If a bytecount from there is useful it wouldn't be too hard to expose (perhaps on PGconnection), but it'd only be approximate because that one stream is used for all activity on the connection including other columns, protocol overhead, etc. -O