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

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 (view raw or flat)
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

pgsql-jdbc by date

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

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