pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Albert Cardona <acardona@ini.phys.ethz.ch>
To: pgsql-jdbc@postgresql.org
Subject: about monitoring the input stream
Date: Mon, 11 Sep 2006 18:59:50 +0200
Message-ID: <200609111859.51271.acardona@ini.phys.ethz.ch> (raw)


Following up from
http://archives.postgresql.org/pgsql-jdbc/2006-07/msg00052.php
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


-- 
Albert Cardona
Molecular Cell Developmental Biology
University of California Los Angeles
Tel +1 310 2067376
Programming: http://www.ini.unizh.ch/~acardona/trakem2.html
Research: http://www.mcdb.ucla.edu/Research/Hartenstein/
Web design: http://www.pixelets.com




view thread (10+ messages)  latest in thread

Message-ID: <200609111859.51271.acardona@ini.phys.ethz.ch>
Permalink:  ../200609111859.51271.acardona@ini.phys.ethz.ch/
Also on:    postgresql.org/message-id/200609111859.51271.acardona@ini.phys.ethz.ch

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: acardona@ini.phys.ethz.ch
  Subject: Re: about monitoring the input stream
  In-Reply-To: <200609111859.51271.acardona@ini.phys.ethz.ch>
  References: <200609111859.51271.acardona@ini.phys.ethz.ch>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox