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

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

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Albert Cardona <acardona(at)ini(dot)phys(dot)ethz(dot)ch>
Cc: pgsql-jdbc(at)postgresql(dot)org, "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 21:46:02
Message-ID: 44B56D9A.5030302@opencloud.com (view raw or flat)
Thread:
Lists: 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

In response to

Responses

pgsql-jdbc by date

Next:From: Albert CardonaDate: 2006-07-12 22:00:00
Subject: Re: how to monitor the amount of bytes fetched in a executeQuery()
Previous:From: Oliver JowettDate: 2006-07-12 21:43:02
Subject: Re: executeQuery Locked

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