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 8:55:49 am
List:org.postgresql.pgsql-jdbc

Hum, it would be infinitely more convenient, for deployment purposes, not to touch the driver at all. What I can do maybe is to hack the driver with reflection, since private fields can be accessed as well (except in applets).

Since you've done it before, would you mind sharing the caveats you went through, general warnings and also the particular class where the receiving InputStream for the ResultSet is? That would save a lot of time!

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?

Thanks for your insight Nicholas.

Albert