Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id A495BCE6EC for ; Fri, 15 Jun 2012 11:10:56 -0300 (ADT) Received: from mh6.mail.rice.edu ([128.42.201.4]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SfXEh-0005JE-N3 for pgsql-hackers@postgresql.org; Fri, 15 Jun 2012 14:10:55 +0000 Received: from mh6.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh6.mail.rice.edu (Postfix) with ESMTP id 4AC7A291134; Fri, 15 Jun 2012 09:10:37 -0500 (CDT) Received: from mh6.mail.rice.edu (localhost.localdomain [127.0.0.1]) by mh6.mail.rice.edu (Postfix) with ESMTP id 04076291144; Fri, 15 Jun 2012 09:10:37 -0500 (CDT) X-Virus-Scanned: by amavis-2.6.4 at mh6.mail.rice.edu, auth channel Received: from mh6.mail.rice.edu ([127.0.0.1]) by mh6.mail.rice.edu (mh6.mail.rice.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id fvKoEkXiDz1B; Fri, 15 Jun 2012 09:10:36 -0500 (CDT) X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no X-SMTP-Auth: no Received: from aart.rice.edu (aart.rice.edu [168.7.56.48]) by mh6.mail.rice.edu (Postfix) with ESMTP id A49F6291134; Fri, 15 Jun 2012 09:10:36 -0500 (CDT) Received: by aart.rice.edu (Postfix, from userid 18612) id 9783010026D; Fri, 15 Jun 2012 09:10:36 -0500 (CDT) Date: Fri, 15 Jun 2012 09:10:36 -0500 From: "ktm@rice.edu" To: Merlin Moncure Cc: Florian Pflug , Magnus Hagander , Bruce Momjian , Tom Lane , Euler Taveira , Pgsql Hackers Subject: Re: libpq compression Message-ID: <20120615141036.GG6547@aart.rice.edu> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/714 X-Sequence-Number: 209554 On Fri, Jun 15, 2012 at 07:18:34AM -0500, Merlin Moncure wrote: > On Fri, Jun 15, 2012 at 5:48 AM, Florian Pflug wrote: > > On Jun15, 2012, at 12:09 , Magnus Hagander wrote: > >> On Fri, Jun 15, 2012 at 5:52 PM, Florian Pflug wrote: > >>> On Jun15, 2012, at 07:50 , Magnus Hagander wrote: > >>>> Second, we also have things like the JDBC driver and the .Net driv= er > >>>> that don't use libpq. the JDBC driver uses the native java ssl > >>>> support, AFAIK. Does that one support the compression, and does it > >>>> support controlling it? > >>> > >>> Java uses pluggable providers with standardized interfaces for most > >>> things related to encryption. SSL support is provided by JSSE > >>> (Java Secure Socket Extension). The JSSE implementation included wi= th > >>> the oracle JRE doesn't seem to support compression according to the > >>> wikipedia page quoted above. But chances are that there exists an > >>> alternative implementation which does. > >> > >> Yeah, but that alone is IMO a rather big blocker for claiming that > >> this is the only way to do it :( And I think the fact that that > >> wikipedia page doesn't list any other ones, is a sign that there mig= ht > >> not be a lot of other choices out there in reality - expecially not > >> opensource=E2=80=A6 > > > > Hm, but things get even harder for the JDBC and .NET folks if we go > > with a third-party compression method. Or would we require that the > > existence of a free Java (and maybe .NET) implementation of such a > > method would be an absolute must? > > > > The way I see it, if we use SSL-based compression then non-libpq clie= nts > > there's at least a chance of those clients being able to use it easil= y > > (if their SSL implementation supports it). If we go with a third-part= y > > compression method, they *all* need to add yet another dependency, or= may > > even need to re-implement the compression method in their implementat= ion > > language of choice. >=20 > hm, that's a really excellent point. >=20 > merlin >=20 I agree and think that the SSL-based compression is an excellent default compression scheme. The plugable compression approach allows for the choice of the most appropriate compression implementation based on the application needs. It really addresses corner cases such as high- performance system. Regards, Ken