Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 6C7206330D8 for ; Sun, 1 Nov 2009 10:56:27 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 18497-03 for ; Sun, 1 Nov 2009 14:56:19 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gx0-f215.google.com (mail-gx0-f215.google.com [209.85.217.215]) by mail.postgresql.org (Postfix) with ESMTP id 6CFB96370A0 for ; Sun, 1 Nov 2009 10:56:19 -0400 (AST) Received: by gxk7 with SMTP id 7so2335352gxk.14 for ; Sun, 01 Nov 2009 06:56:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=GqRahnOyIMzSFLtKgpsw12yEgGxa3sz5n+GmKtIqvUI=; b=OBai2uHJOW5Ty+oH9z2YIlXaJwDZQ6+9hug+6yeQ+dkWcXPaqXcRshhh0M0LPFJvJ1 CE0uu185pzAa6PemLe1C3NBMzN14dEEgooXCwcRh0Wt3WwNho5jfP5QYE0C6MdCFMF7n lARImmdop/pyOwxvL9jT45qvl8iPyPTeDzFOE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=dTKGzuE4by+7gG9BDMDjHTY8U6zTn4fkf4PRi2yHR4WTaroXOLdzMkld9D7T4m1xs4 BxmxUhxjOfIMnFwDKUr+4+6lGTGh8JZKeYuYII3DMs2556zxKshKo0GgF5QoZe89t04J YBpvo4EEZCrtdHZ9F3ErU0/EDed5KD91YVny8= MIME-Version: 1.0 Received: by 10.150.172.4 with SMTP id u4mr6418153ybe.252.1257087377654; Sun, 01 Nov 2009 06:56:17 -0800 (PST) In-Reply-To: <234efe30911010651k6cf3d398t9d61e560d57b52b7@mail.gmail.com> References: <234efe30911010651k6cf3d398t9d61e560d57b52b7@mail.gmail.com> Date: Sun, 1 Nov 2009 15:56:17 +0100 Message-ID: <162867790911010656m37b315dbp41761a014745b9e4@mail.gmail.com> Subject: Re: Compression in PG From: Pavel Stehule To: Shaul Dar Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=UTF-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/2 X-Sequence-Number: 36170 2009/11/1 Shaul Dar : > Hi, > > I have several long text fields in my DB that I would love to compress > (descriptions, URLs etc). Can you tell me what options exists in PG > (+pointers please), typical effect on space and run time? Hello You can do nothing. PostgreSQL compresses data automatically http://www.postgresql.org/docs/8.4/interactive/storage-toast.html Regards Pavel Stehule > > Thanks, > > -- Shaul >