From: Craig Ringer <craig@postnewspapers.com.au>
To: Alexander Pyhalov <alp@rsu.ru>
Cc: dmp <danap@ttc-cmc.net>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Get bytes sent to client
Date: Fri, 18 Dec 2009 15:59:40 +0800
Message-ID: <4B2B366C.7010304@postnewspapers.com.au> (raw)
In-Reply-To: <4B2B228C.8070008@rsu.ru>
References: <4B2894E7.80407@rsu.ru>
<4B28A86A.3060506@rsu.ru>
<4B290928.5080004@ttc-cmc.net>
<4B291141.90503@rsu.ru>
<4B29D2A3.6050504@postnewspapers.com.au>
<4B2B228C.8070008@rsu.ru>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: craig@postnewspapers.com.au, alp@rsu.ru, danap@ttc-cmc.net
Subject: Re: Get bytes sent to client
In-Reply-To: <4B2B366C.7010304@postnewspapers.com.au>
References: <4B2894E7.80407@rsu.ru> <4B28A86A.3060506@rsu.ru> <4B290928.5080004@ttc-cmc.net> <4B291141.90503@rsu.ru> <4B29D2A3.6050504@postnewspapers.com.au> <4B2B228C.8070008@rsu.ru> <4B2B366C.7010304@postnewspapers.com.au>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox