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

about monitoring the input stream

From: Albert Cardona <acardona(at)ini(dot)phys(dot)ethz(dot)ch>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: about monitoring the input stream
Date: 2006-09-11 16:59:50
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-jdbc
Following up from
I wonder if anything has been done on the subject of monitoring the amount of 
bytes since the last query?

Finally I've digged into the code and put my hands through reflection on the 
InputStream encapsulated in the PGStream. Problem is, the stream is emptied 
frequently and I can't find the class responsible for reading it out, so my 
readings of the available() bytes (in a monitoring thread) underestimate 
tremendously the amount of bytes actually piped.

I understand there is only one InputStream per connection, encapsulated inside 
a PGStream, created in the ProtocolConnectionImpl. Being able to monitor its 
the amount of bytes fetched for each query would be really nice!

Any help appreciated.


Albert Cardona
Molecular Cell Developmental Biology
University of California Los Angeles
Tel +1 310 2067376
Web design:


pgsql-jdbc by date

Next:From: Kris JurkaDate: 2006-09-11 17:42:54
Subject: Re: Set of cursors from database
Previous:From: jbrasDate: 2006-09-11 09:21:59
Subject: Re: postgresql / openoffice

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