Re: Client/Server compression?

From: Kyle <kaf(at)nwlink(dot)com>
To: Greg Copeland <greg(at)CopelandConsulting(dot)Net>
Cc: PostgresSQL Hackers Mailing List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Client/Server compression?
Date: 2002-03-16 01:44:09
Message-ID: 15506.41833.4054.850914@doppelbock.patentinvestor.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Greg Copeland wrote:
> [cut]
> My current thoughts are to allow for enabled/disabled compression and
> variable compression settings (1-9) within a database configuration.
> Worse case, it may be fun to implement and I'm thinking there may
> actually be some surprises as an end result if it's done properly.
>
> [cut]
>
> Greg

Wouldn't Tom's suggestion of riding on top of ssh would give similar
results? Anyway, it'd probably be a good proof of concept of whether
or not it's worth the effort. And that brings up the question: how
would you measure the benefit? I'd assume you'd get a good cut in
network traffic, but you'll take a hit in cpu time. What's an
acceptable tradeoff?

That's one reason I was thinking about the toast stuff. If the
backend could serve toast, you'd get an improvement in server to
client network traffic without the server spending cpu time on
compression since the data has previously compressed.

Let me know if this is feasible (or slap me if this is how things
already are): when the backend detoasts data, keep both copies in
memory. When it comes time to put data on the wire, instead of
putting the whole enchilada down give the client the compressed toast
instead. And yeah, I guess this would require a protocol change to
flag the compressed data. But it seems like a way to leverage work
already done.

-kf

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Clark C . Evans 2002-03-16 01:54:02 Re: [BUGS] Bug #613: Sequence values fall back to previously chec
Previous Message Tony Reina 2002-03-16 01:20:09 Anyone have a SQL code for cumulative F distribution function?