Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id DE061632F77 for ; Wed, 16 Dec 2009 04:06:55 -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 56883-04 for ; Wed, 16 Dec 2009 08:06:48 +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 48144632D27 for ; Wed, 16 Dec 2009 04:06:01 -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 nBG85x8O015372 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Wed, 16 Dec 2009 11:05:59 +0300 (MSK) (envelope-from alp@rsu.ru) Message-ID: <4B2894E7.80407@rsu.ru> Date: Wed, 16 Dec 2009 11:05:59 +0300 From: Alexander Pyhalov User-Agent: Thunderbird 2.0.0.23 (X11/20091202) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Get bytes sent to client 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=-0.185 tagged_above=-10 required=5 tests=BAYES_40=-0.185 X-Spam-Level: X-Archive-Number: 200912/44 X-Sequence-Number: 20125 Hello. I'd like to collect some statistics in my application (using JDBC). In Oracle I could collect data, sent to client, using the following query: SELECT S.value FROM V$MYSTAT S,SYS.V_$STATNAME NAMES WHERE NAMES.STATISTIC#=S.STATISTIC# AND NAMES.NAME='bytes sent via SQL*Net to client'; Can I do something like this in PostgreSQL? I'd like to estimate query result size, to be more precise, amount of network traffic, which is generated in response to a query. -- Best regards, Alexander Pyhalov, system administrator of Computer Center of South Federal University