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:Oliver Jowett (oli@opencloud.com)
Date:Jul 12, 2006 2:45:39 pm
List:org.postgresql.pgsql-jdbc

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