Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 6A760CE6EC for ; Fri, 15 Jun 2012 17:08:37 -0300 (ADT) Received: from oproxy6.bluehost.com ([2605:dc00:100:2::a6] helo=oproxy6-pub.bluehost.com) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Sfcop-00046o-Mf for pgsql-hackers@postgresql.org; Fri, 15 Jun 2012 20:08:36 +0000 Received: (qmail 554 invoked by uid 0); 15 Jun 2012 20:08:15 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by cpoproxy3.bluehost.com with SMTP; 15 Jun 2012 20:08:15 -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=Ux2j0JneE0qpzRRxkP2O2YfIrAXFHyrcvWCDzvYa/5g=; b=AztXGGU7NjMY2GFMnBDD8kySBEUgrawNHx/TwBf9uLtYtFzWyJxAOXYwIBk0BVVW5NrBaric+hG3KW+iLn91OsDxs7q+sls5RUUahz8JCssNp2PjbLeN8FVnRbgixAiP; Received: from [189.10.72.105] (port=61743 helo=[10.3.2.3]) by host159.hostmonster.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1SfcoY-00072T-Ko; Fri, 15 Jun 2012 14:08:15 -0600 Message-ID: <4FDB954F.9010606@timbira.com> Date: Fri, 15 Jun 2012 17:04:31 -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: Magnus Hagander CC: Florian Pflug , Bruce Momjian , Tom Lane , Pgsql Hackers Subject: Re: libpq compression References: <4FD9698F.2090407@timbira.com> <29853.1339651170@sss.pgh.pa.us> <4FD9E70B.9040607@timbira.com> <11502.1339699384@sss.pgh.pa.us> <20120615021938.GA21704@momjian.us> <22690C61-E960-4A2A-BFD5-DAD3D3B5C474@phlo.org> In-Reply-To: X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 189.10.72.105 authed with euler@timbira.com} X-Pg-Spam-Score: -2.0 (--) X-Archive-Number: 201206/743 X-Sequence-Number: 209583 On 15-06-2012 11:39, Magnus Hagander wrote: > As long as a free implementation exists, it can be ported to > Java/.Net. Sure, it takes more work, but it *can be done*. > Good point. IMHO, if there isn't a solution that cover all PostgreSQL (it seems it is not), we should pick the most appropriate one for *libpq* and let other drivers implement it at their time. > I only partially agree. If there *is* no third party SSL libary that > does support it, then they're stuck reimplementing an *entire SSL > library*, which is surely many orders of magnitude more work, and > suddenly steps into writing encryption code which is a lot more > sensitive. Basically if they have to do that, then they're stuck > *never* being able to fix the problem. > > If we can prove such a third party library *exists*, that makes it > different. But from what I can tell so far, I haven't seen a single > one - let alone one that supports compression. > Using SSL-based compression could be a solution but I would like to emphasize that (i) I'm obligated to use cryptography library to compress data, (ii) I'm paying the price for SSL overhead and (iii) it will confuse people when we said that for compression we need a SSL connection or (iv) even transform the libpq communication code into a spaghetti to support compression using SSL in non-SSL connections). I see the point in not adding another dependencies or reinventing the wheel but I see more drawbacks than benefits in adopting a SSL-based compression. I like the Farina's idea in supporting compression outside libpq but I'm ok with adding a standard algorithm for compression (problem is that in the future others could want to add another interesting compression algorithms). -- Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento