pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Tom Lane <tgl@sss.pgh.pa.us>
To: Euler Taveira <euler@timbira.com>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Florian Pflug <fgp@phlo.org>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: Pgsql Hackers <pgsql-hackers@postgresql.org>
Subject: Re: libpq compression
Date: Fri, 15 Jun 2012 18:37:49 -0400
Message-ID: <5365.1339799869@sss.pgh.pa.us> (raw )
In-Reply-To: <5136.1339799120@sss.pgh.pa.us >
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 >
<CABUevEyv4T+1gR6_Uqm_1qUD9PNDg6UdXbJhwHZgFi9hpQQ6NQ@mail.gmail.com >
<F3B8BAA6-23E9-423A-A7D1-D2E14769F326@phlo.org >
<CABUevExi-cJ6AvF2kDOy+qQsB+0JHofrcvVmNVoJ2HziZMMaAg@mail.gmail.com >
<22690C61-E960-4A2A-BFD5-DAD3D3B5C474@phlo.org >
<CABUevEzVpqS5RCLz2fFREdPFkuYkEKsrMpnfPixYWPki2=iJOA@mail.gmail.com >
<4FDB954F.9010606@timbira.com >
<5136.1339799120@sss.pgh.pa.us >
I wrote:
> Euler Taveira <euler@timbira.com> writes:
>> 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.
> In the end, judging this tradeoff is a matter of opinion, but I come to
> the opposite conclusion.
BTW, there is an additional technical argument that I don't think has
been made yet. Assume that we implement our own transport compression,
and then somebody runs an SSL connection using a recent OpenSSL version
(in which, IIRC, SSL-level compression is enabled by default). Now,
OpenSSL is trying to compress already-compressed data. That's not
merely a waste of cycles but is very likely to be counterproductive,
ie recompressed data usually gets larger not smaller.
We could possibly address this by adding control logic to tell OpenSSL
not to compress ... but that's almost exactly the code you don't want
to write, just making a different option selection. And I wonder
whether SSL implementations that don't support compression will accept
a set-the-compression-option call at all.
regards, tom lane
view thread (289+ messages) latest in thread
Message-ID: <5365.1339799869@sss.pgh.pa.us>
Permalink: ../5365.1339799869@sss.pgh.pa.us/
Also on: postgresql.org/message-id/5365.1339799869@sss.pgh.pa.us
copy link · copy postgr.es
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 using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, euler@timbira.com, magnus@hagander.net, fgp@phlo.org, bruce@momjian.us
Subject: Re: libpq compression
In-Reply-To: <5365.1339799869@sss.pgh.pa.us>
* 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