Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id F3E97B5D803 for ; Fri, 13 May 2011 13:49:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 22135-08 for ; Fri, 13 May 2011 16:49:45 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mail.postgresql.org (Postfix) with ESMTP id 87E73B5D801 for ; Fri, 13 May 2011 13:49:45 -0300 (ADT) Received: from [192.168.11.145] (riosat.com [89.140.90.230]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0LoMIP-1Pnojb13px-00gHHg; Fri, 13 May 2011 18:49:39 +0200 Subject: Re: Incoming/Sent traffic data From: Hannu Krosing To: Israel Ben Guilherme Fonseca Cc: pgsql-jdbc@postgresql.org In-Reply-To: References: <4DCD13A7020000250003D6C6@gw.wicourts.gov> Content-Type: text/plain; charset="UTF-8" Date: Fri, 13 May 2011 18:49:36 +0200 Message-ID: <1305305376.3960.11.camel@hvost> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:hGedS3aAUqhnfQAHMy6uW4dmXqiXZGyG8BTrPoeTAxU mr/QcqqQ8A5SDJhMbTR6CW9K9G/lcDloaspjMo0kbQJnryBBTU bLsm1NNnAhaMGEBHHXVTWBvcBnh8P1qSHOj2uNyV01ciBU5R9C DopAv0aB7cJ6ePCgzF3GIFdqWAQmLRbxX3VsgArQD9HgSjOF9N TnEzI+6UyL9s7SthUU+kqHx0G8MZVDPbUVnyfrobRE= X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201105/37 X-Sequence-Number: 21867 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 > Maciek Sakrejda 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/