pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannu Krosing <hannu@2ndQuadrant.com>
To: Israel Ben Guilherme Fonseca <israel.bgf@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Incoming/Sent traffic data
Date: Fri, 13 May 2011 18:49:36 +0200
Message-ID: <1305305376.3960.11.camel@hvost> (raw)
In-Reply-To: <BANLkTimKMUOzxDhn7rr1nCCTSrUBBRa_sg@mail.gmail.com>
References: <BANLkTi=+KqU37L7VEL4KDDqYMpTr7c-=9w@mail.gmail.com>
	<BANLkTimgZ5Q-DTS1WMASgaPxYO3UWMSWLQ@mail.gmail.com>
	<BANLkTinCbh1UOd2BFy_EToKbZ9Otmug+bQ@mail.gmail.com>
	<BANLkTimsypLk7AhogY10vHQYBp=6wEGS9w@mail.gmail.com>
	<BANLkTindHFPiB6SMpFKyF2f981STAV84Uw@mail.gmail.com>
	<BANLkTikpjra+wagkWqTNOn=PBFLRLRMW0g@mail.gmail.com>
	<iqhoj2$vta$1@news.albasani.net>
	<BANLkTinvnKHQO0cfbbQE-qbZFkpvm-fDhQ@mail.gmail.com>
	<BANLkTikx7pVVY9O0OYwhh_PF7+cfgM5i=w@mail.gmail.com>
	<BANLkTi=LsZMhfKxbr6d7EHKFZO8dB5FJyw@mail.gmail.com>
	<BANLkTi=BFLrc+-fT5ggYM1E33wvobDr5zA@mail.gmail.com>
	<BANLkTinHkuGPEGWBQeM6VPgLGyTb7f74ZQ@mail.gmail.com>
	<BANLkTikshdELcV06nY+B2UihuoGpAS8RaQ@mail.gmail.com>
	<4DCD13A7020000250003D6C6@gw.wicourts.gov>
	<BANLkTimKMUOzxDhn7rr1nCCTSrUBBRa_sg@mail.gmail.com>

On Fri, 2011-05-13 at 13:40 -0300, Israel Ben Guilherme Fonseca wrote:
> Well I finally figure it out thanks to you guys.
> 
> After checking the package contents I could notice that the Java test
> I can easily see it contents (traffic data and select statements).
> That wasn't true for the Python test, the content show as a bizarre
> sequence o characters.
> 
> So as you guys argued, it was indeed ssl encrypted. I checked the docs
> and learned how to disable it and I got the same results as the java
> driver.
> 
> 221222KB (almost the same)
> 
> But here is the question, does the SSL compress the data too? 

http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#comp

and postgresql and libpq use OpenSSL, so depending on version of SSL
used, you may get the compression part automatically

JDBC's SSL support may no (yet) include it


> I enabled the self-signed ssl mode for the java test, and It was
> indeed encrypted, but the traffic was still "big", differently to the
> python version.
> 
> Any Ideas?
> 
> (i'm doing this question on the psycopg2 mailist too)
> 
> Thank you guys again for the help.
> 
> 2011/5/13 Kevin Grittner <Kevin.Grittner@wicourts.gov>
>         Maciek Sakrejda <msakrejda@truviso.com> wrote:
>         
>         >> D is just a DataRow message, you get one of those per row
>         >> returned.
>         
>         
>         > Right. If you're *not* getting those in Python, you're not
>         getting
>         > the data, so something is seriously wrong there.
>         
>         
>         Perhaps python doesn't ship all the rows back on execute, but
>         waits
>         for the rows to be requested?  If it isn't already doing it,
>         try
>         changing the script to read all the rows in the result set.
>         
>         -Kevin
> 

-- 
-------
Hannu Krosing
PostgreSQL Infinite Scalability and Performance Consultant
PG Admin Book: http://www.2ndQuadrant.com/books/




view thread (26+ messages)  latest in thread

Message-ID: <1305305376.3960.11.camel@hvost>
Permalink:  ../1305305376.3960.11.camel@hvost/
Also on:    postgresql.org/message-id/1305305376.3960.11.camel@hvost

 · 

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: hannu@2ndQuadrant.com, israel.bgf@gmail.com
  Subject: Re: Incoming/Sent traffic data
  In-Reply-To: <1305305376.3960.11.camel@hvost>
  References: <BANLkTi=+KqU37L7VEL4KDDqYMpTr7c-=9w@mail.gmail.com> <BANLkTimgZ5Q-DTS1WMASgaPxYO3UWMSWLQ@mail.gmail.com> <BANLkTinCbh1UOd2BFy_EToKbZ9Otmug+bQ@mail.gmail.com> <BANLkTimsypLk7AhogY10vHQYBp=6wEGS9w@mail.gmail.com> <BANLkTindHFPiB6SMpFKyF2f981STAV84Uw@mail.gmail.com> <BANLkTikpjra+wagkWqTNOn=PBFLRLRMW0g@mail.gmail.com> <iqhoj2$vta$1@news.albasani.net> <BANLkTinvnKHQO0cfbbQE-qbZFkpvm-fDhQ@mail.gmail.com> <BANLkTikx7pVVY9O0OYwhh_PF7+cfgM5i=w@mail.gmail.com> <BANLkTi=LsZMhfKxbr6d7EHKFZO8dB5FJyw@mail.gmail.com> <BANLkTi=BFLrc+-fT5ggYM1E33wvobDr5zA@mail.gmail.com> <BANLkTinHkuGPEGWBQeM6VPgLGyTb7f74ZQ@mail.gmail.com> <BANLkTikshdELcV06nY+B2UihuoGpAS8RaQ@mail.gmail.com> <4DCD13A7020000250003D6C6@gw.wicourts.gov> <BANLkTimKMUOzxDhn7rr1nCCTSrUBBRa_sg@mail.gmail.com> <1305305376.3960.11.camel@hvost>

* 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