pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Pyhalov <alp@rsu.ru>
To: pgsql-jdbc@postgresql.org
Subject: Re: Get bytes sent to client
Date: Wed, 16 Dec 2009 12:29:14 +0300
Message-ID: <4B28A86A.3060506@rsu.ru> (raw)
In-Reply-To: <4B2894E7.80407@rsu.ru>
References: <4B2894E7.80407@rsu.ru>

I had some thoughts about extending ProtocolConnectionImpl, PGStream 
and so on (to account bytes on client side, when PGStream calls pg_input 
  methods), but they have a lot of private fields and methods... It is 
also is quite time-consuming... Are there any other ideas? The idea is 
to account size of raw data sent to client...

Alexander Pyhalov wrote:
> 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.
> 


-- 
С уважением,
Александр Пыхалов,
системный администратор ЮГИНФО ЮФУ.




view thread (10+ messages)  latest in thread

Message-ID: <4B28A86A.3060506@rsu.ru>
Permalink:  ../4B28A86A.3060506@rsu.ru/
Also on:    postgresql.org/message-id/4B28A86A.3060506@rsu.ru

 · 

reply

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: alp@rsu.ru
  Subject: Re: Get bytes sent to client
  In-Reply-To: <4B28A86A.3060506@rsu.ru>
  References: <4B2894E7.80407@rsu.ru> <4B28A86A.3060506@rsu.ru>

* 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