Re: Get bytes sent to client

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Alexander Pyhalov <alp(at)rsu(dot)ru>
Cc: dmp <danap(at)ttc-cmc(dot)net>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Get bytes sent to client
Date: 2009-12-18 07:59:40
Message-ID: 4B2B366C.7010304@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Alexander Pyhalov 2009-12-18 09:59:23 Re: Get bytes sent to client
Previous Message Alexander Pyhalov 2009-12-18 06:34:52 Re: Get bytes sent to client