Re: Get bytes sent to client - Mailing list pgsql-jdbc

From Craig Ringer
Subject Re: Get bytes sent to client
Date
Msg-id 4B2B366C.7010304@postnewspapers.com.au
Whole thread Raw
In response to Re: Get bytes sent to client  (Alexander Pyhalov <alp@rsu.ru>)
Responses Re: Get bytes sent to client  (Alexander Pyhalov <alp@rsu.ru>)
Re: Get bytes sent to client  (Alexander Pyhalov <alp@rsu.ru>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Alexander Pyhalov
Date:
Subject: Re: Get bytes sent to client
Next
From: Alexander Pyhalov
Date:
Subject: Re: Get bytes sent to client