Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 55C316352BC for ; Tue, 23 Jun 2009 17:30:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 89664-09 for ; Tue, 23 Jun 2009 17:30:45 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-px0-f198.google.com (mail-px0-f198.google.com [209.85.216.198]) by mail.postgresql.org (Postfix) with ESMTP id 2F843634FF5 for ; Tue, 23 Jun 2009 17:30:46 -0300 (ADT) Received: by pxi36 with SMTP id 36so198016pxi.15 for ; Tue, 23 Jun 2009 13:30:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=XaoMr5vaqev/HAHGYW0Dk0ETVGN9icfv+YaQVwgd90g=; b=gTbPXYSYwbQaGgtsBWc9GjE/+cQiSjjVKCasfIr2anWrXJ3H9CI+wzhSbsvzA5umQ3 efvzcW1B2zWUHzRDz6BIiEmXkKL5G61JyEEkPTghI/BxDsOzjjDTA6oqGV3rHu69VdIa B0VOy2ZqYl/kgvhr3+5MZ76rOxNl81NEm/clE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=ABgZzRI6bCvIRXjEYhA8c325NGXuOYUVv630HlQLcVk49FyrTMW+vyUrnGeRuT5+F1 rnNvV1FQURQldfIOw7DBuDxorXcBqWgJcM4bjEkdqh780YxEl18ljEXKRCYkKRRw0rA5 xdsVesrBePIUQXatGP7BoJ30X/JufuFEFdfHA= Received: by 10.115.18.3 with SMTP id v3mr692990wai.32.1245789044869; Tue, 23 Jun 2009 13:30:44 -0700 (PDT) Received: from ?192.168.0.7? (rsargent.dsl.xmission.com [199.104.125.126]) by mx.google.com with ESMTPS id n9sm594120wag.23.2009.06.23.13.30.44 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Jun 2009 13:30:44 -0700 (PDT) Message-ID: <4A413B6D.5070200@gmail.com> Date: Tue, 23 Jun 2009 14:30:37 -0600 From: Rob Sargent User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Client-side compression Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/96 X-Sequence-Number: 32701 Not sure if this belongs here or on the admin or performance list. Apologies if so. (And this may be a second posting as the first was from an un-registered account. Further apologies) My assumption is that any de/compression done by postgres would be server-side. We're considering minimizing bandwidth utilization by using client-side compression on a column value that will typically be multi-megabyte in size. We would use ALTER TABLE SET STORAGE EXTERNAL to prevent the server from un-necessary compression. Is this generally worthwhile? I haven't found any thread on the subject of client-side compress so any pointer more than welcome. Is there a great penalty for a query which delves into the value, given that the server will not be aware it's compressed? I assume we're pretty much on our own to prevent such actions (i.e. the app can never query against this column via sql).