7 messages in org.postgresql.pgsql-jdbcRe: how to monitor the amount of byte...
FromSent OnAttachments
Albert CardonaJul 11, 2006 11:27 am 
Nicholas E. WakefieldJul 11, 2006 8:17 pm 
Oliver JowettJul 11, 2006 10:10 pm 
Albert CardonaJul 12, 2006 8:55 am 
Oliver JowettJul 12, 2006 2:45 pm 
Albert CardonaJul 12, 2006 2:59 pm 
Oliver JowettJul 12, 2006 3:13 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: how to monitor the amount of bytes fetched in a executeQuery()Actions...
From:Albert Cardona (acar@ini.phys.ethz.ch)
Date:Jul 12, 2006 2:59:37 pm
List:org.postgresql.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