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 B86D99FB352 for ; Wed, 12 Jul 2006 19:00:37 -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 83766-01 for ; Wed, 12 Jul 2006 19:00:31 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.ini.unizh.ch (dns.ini.unizh.ch [130.60.230.185]) by postgresql.org (Postfix) with ESMTP id D163D9FB319 for ; Wed, 12 Jul 2006 19:00:30 -0300 (ADT) Received: from smtp.ini.unizh.ch (localhost [127.0.0.1]) by smtp.ini.unizh.ch (Postfix) with ESMTP id 6A7CA85CA14; Thu, 13 Jul 2006 00:00:23 +0200 (CEST) Received: by smtp.ini.unizh.ch (Postfix, from userid 499) id 5E67685CA27; Thu, 13 Jul 2006 00:00:23 +0200 (CEST) Received: from [192.168.0.2] (dhcp226-12.obee.ucla.edu [164.67.12.226]) (using TLSv1 with cipher EXP1024-RC4-SHA (56/128 bits)) (No client certificate requested) by smtp.ini.unizh.ch (Postfix) with ESMTP id 889AA85CA14; Thu, 13 Jul 2006 00:00:17 +0200 (CEST) From: Albert Cardona To: Oliver Jowett , pgsql-jdbc@postgresql.org Subject: Re: how to monitor the amount of bytes fetched in a executeQuery() Date: Wed, 12 Jul 2006 15:00:00 -0700 User-Agent: KMail/1.9.1 References: <2F2A7EB72EBAF24582513E72ACCBCAAE11A2D6@kniexch01.KineticNetworks.com> <200607120856.12722.acardona@ini.phys.ethz.ch> <44B56D9A.5030302@opencloud.com> In-Reply-To: <44B56D9A.5030302@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607121500.01107.acardona@ini.phys.ethz.ch> X-Virus-Scanned: ClamAV using ClamSMTP X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/54 X-Sequence-Number: 15480 > 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. That would definitely work for me, since data is orders of magnitude larger than any overheads. In any case it would serve the purpose of showing that the connection is not stuck, that bytes are flowing in even if -on occasions- slowly. One could even use it to calculate connection/download/upload speed and thus provide very nice information to the impatient user. I will have a look at the code myself but I'm not familiar with it -you say it's at PGconnection class? Albert