Skip site navigation (1) Skip section navigation (2)

Re: how to monitor the amount of bytes fetched in a executeQuery()

From: Albert Cardona <acardona(at)ini(dot)phys(dot)ethz(dot)ch>
To: pgsql-jdbc(at)postgresql(dot)org
Cc: "Nicholas E(dot) Wakefield" <nwakefield(at)kineticnetworks(dot)com>
Subject: Re: how to monitor the amount of bytes fetched in a executeQuery()
Date: 2006-07-12 15:56:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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.


In response to


pgsql-jdbc by date

Next:From: Chris White (cjwhite)Date: 2006-07-12 16:09:17
Subject: Unsubscribe pgsql-jdbc
Previous:From: Lucas SousaDate: 2006-07-12 11:45:01
Subject: Re: executeQuery Locked

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group