On 18/12/2009 2:34 PM, Alexander Pyhalov wrote:
>
> I've made patch for Postgres JDBC driver. Now driver accounts bytes
> sent/received from client ing PGStream.
Can't you extend or wrap the pg_input / pg_output streams to do the
accounting in their read(...) / write(...) method instead? The way
you've done it is rather fragile and is very prone to bitrot as other
parts of the driver are changed.
--
Craig Ringer