Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A4115633382 for ; Sun, 1 Nov 2009 11:57:55 -0400 (AST) 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 31255-02 for ; Sun, 1 Nov 2009 15:57:34 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.25]) by mail.postgresql.org (Postfix) with ESMTP id C4D5763255D for ; Sun, 1 Nov 2009 11:57:44 -0400 (AST) Received: by qw-out-2122.google.com with SMTP id 9so840529qwb.61 for ; Sun, 01 Nov 2009 07:57:42 -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=E1S99s6JEZowmi2hEn5CJIygpMahwiEFI1KVrS04vAM=; b=lFygefijA4mbh4HY6HLtYoFQgBmDEgILmUvTPJMBTN8adazCEMCVF43OXyc/Ih/Dy/ n/uMMz2AZ4pcJPPG2JDa8xyirXBdQ7ABP2jD1Eg92qAXPMM+tzi/hKCqXtZDk/rSt9lq +WuMcSRTwqQovyLt8Jj5MzW/OiOI3edJ32ryI= 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=nUPRkHPPbDn03ioK460060ycsib5lemaXplsU2+NvBZIPIW/+tE975yzhZNnV5Q3hz p9yfyfha3ERpP3re6la5ibNQhN74gz07S8od1ooWG61zOORZvAfFGQfB6iXHQA97Sk7r 1JfnGiblrYttLRVOFOFkP38brloww/O1iPVnc= MIME-Version: 1.0 Received: by 10.224.81.81 with SMTP id w17mr2254794qak.382.1257091062712; Sun, 01 Nov 2009 07:57:42 -0800 (PST) In-Reply-To: <162867790911010656m37b315dbp41761a014745b9e4@mail.gmail.com> References: <234efe30911010651k6cf3d398t9d61e560d57b52b7@mail.gmail.com> <162867790911010656m37b315dbp41761a014745b9e4@mail.gmail.com> Date: Sun, 1 Nov 2009 08:57:42 -0700 Message-ID: Subject: Re: Compression in PG From: Scott Marlowe To: Pavel Stehule Cc: Shaul Dar , pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.563 tagged_above=-10 required=5 tests=AWL=0.036, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/4 X-Sequence-Number: 36172 On Sun, Nov 1, 2009 at 7:56 AM, Pavel Stehule wrote: > 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 Well you can pick a strategy. But yeah, there's not much for the average user to do really.