Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 409CE632805 for ; Fri, 18 Dec 2009 05:59:36 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 60835-08 for ; Fri, 18 Dec 2009 09:59:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.r61.net (mail.r61.net [195.208.245.249]) by mail.postgresql.org (Postfix) with ESMTP id 811666326BF for ; Fri, 18 Dec 2009 05:59:27 -0400 (AST) Received: from pyhalov.cc.rsu.ru (pyhalov.cc.rsu.ru [195.208.252.128]) (authenticated bits=0) by mail.r61.net (8.14.3/8.14.1) with ESMTP id nBI9xNbL032125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 18 Dec 2009 12:59:24 +0300 (MSK) (envelope-from alp@rsu.ru) Message-ID: <4B2B527B.7080408@rsu.ru> Date: Fri, 18 Dec 2009 12:59:23 +0300 From: Alexander Pyhalov User-Agent: Thunderbird 2.0.0.23 (X11/20091202) MIME-Version: 1.0 To: Craig Ringer CC: dmp , pgsql-jdbc@postgresql.org Subject: Re: Get bytes sent to client 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> In-Reply-To: <4B2B366C.7010304@postnewspapers.com.au> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/56 X-Sequence-Number: 20137 I'll look at this in the weekend an report later... Craig Ringer wrote: > 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. -- Best regards, Alexander Pyhalov, system administrator of Computer Center of South Federal University