Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 291BF7E4442 for ; Fri, 22 Jun 2012 13:42:31 -0300 (ADT) Received: from oproxy5.bluehost.com ([2605:dc00:100:2::a5] helo=oproxy5-pub.bluehost.com) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Si6wF-0008PY-4B for pgsql-hackers@postgresql.org; Fri, 22 Jun 2012 16:42:31 +0000 Received: (qmail 22251 invoked by uid 0); 22 Jun 2012 16:42:09 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by cpoproxy2.bluehost.com with SMTP; 22 Jun 2012 16:42:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=timbira.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=bkR2fiTOWNRl8Npt5JWxDU27djBVa1PLP0EAyoeqH1w=; b=uF5raFhV3is8IZH4OOmuTn3Dh5KnjQpcywVoPAgksQ4xl+lyEJ9Orez8DCXsi83Fikyzj09Z9ohciDYU0wf+JxdAqW9IjtpQogj6a+3d+URMIw+1vOcg3hVwuCh8t9TH; Received: from [189.31.20.229] (port=63870 helo=[10.3.2.3]) by host159.hostmonster.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1Si6vx-0007F7-AH; Fri, 22 Jun 2012 10:42:09 -0600 Message-ID: <4FE49F7C.9020300@timbira.com> Date: Fri, 22 Jun 2012 13:38:20 -0300 From: Euler Taveira User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: Marko Kreen CC: Florian Pflug , Magnus Hagander , Robert Haas , Martijn van Oosterhout , Tom Lane , Bruce Momjian , Pgsql Hackers , Claes Jakobsson Subject: Re: libpq compression References: <4FDB954F.9010606@timbira.com> <5136.1339799120@sss.pgh.pa.us> <5365.1339799869@sss.pgh.pa.us> <11357.1339822502@sss.pgh.pa.us> <19804.1339859730@sss.pgh.pa.us> <9B10BD6E-31AA-4699-BB67-5C386B623F77@phlo.org> <27043.1339950593@sss.pgh.pa.us> <20120618174233.GA24681@svana.org> <1D8B2B60-F42E-448C-9295-C07FACCF0611@phlo.org> <7760EC03-5B38-4903-AD2D-95F787B1E1ED@phlo.org> In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 189.31.20.229 authed with euler@timbira.com} X-Pg-Spam-Score: -2.0 (--) X-Archive-Number: 201206/1362 X-Sequence-Number: 210202 On 20-06-2012 17:40, Marko Kreen wrote: > On Wed, Jun 20, 2012 at 10:05 PM, Florian Pflug wrote: >> I'm starting to think that relying on SSL/TLS for compression of >> unencrypted connections might not be such a good idea after all. We'd >> be using the protocol in a way it quite clearly never was intended to >> be used... > > Maybe, but what is the argument that we should avoid > on encryption+compression at the same time? > > AES is quite lightweight compared to compression, so should > be no problem in situations where you care about compression. > If we could solve compression problem without AES that will turn things easier. Compression-only via encryption is a weird manner to solve the problem in the user's POV. > RSA is noticeable, but only for short connections. > Thus easily solvable with connection pooling. > RSA overhead is not the main problem. SSL/TLS setup is. > And for really special compression needs you can always > create a UDF that does custom compression for you. > You have to own the code to modify it; it is not always an option. > So what exactly is the situation we need to solve > with postgres-specific protocol compression? > Compression only support. Why do I need to set up SSL/TLS just for compression? IMHO SSL/TLS use is no different from relying in another library to handle compression for the protocol and more it is compression-specific. That way, we could implement another algorithms in such library without needing to modify libpq code. Using SSL/TLS you are bounded by what SSL/TLS software products decide to use as compression algorithms. I'll be happy to maintain the code iif it is postgres-specific or even as close as possible to core. -- Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento