Re: how to monitor the amount of bytes fetched in a executeQuery() - Mailing list pgsql-jdbc

From Albert Cardona
Subject Re: how to monitor the amount of bytes fetched in a executeQuery()
Date
Msg-id 200607121500.01107.acardona@ini.phys.ethz.ch
Whole thread Raw
In response to Re: how to monitor the amount of bytes fetched in a executeQuery()  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
> 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


pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: how to monitor the amount of bytes fetched in a executeQuery()
Next
From: "Folorunsho, Abayomi"
Date:
Subject: CLASS EXCEPTION org.postgresql.Driver