Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A1CA2633A9F for ; Tue, 13 Apr 2010 16:22:40 -0300 (ADT) 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 20712-02 for ; Tue, 13 Apr 2010 19:22:30 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from spinlock.commandprompt.com (host-215.commandprompt.net [207.173.203.215]) by mail.postgresql.org (Postfix) with ESMTP id 329AB633920 for ; Tue, 13 Apr 2010 16:22:30 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by spinlock.commandprompt.com (Postfix) with ESMTP id EA278348036; Tue, 13 Apr 2010 12:22:28 -0700 (PDT) Received: from spinlock.commandprompt.com ([127.0.0.1]) by localhost (spinlock.commandprompt.com.commandprompt.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ctYRbvRToXi5; Tue, 13 Apr 2010 12:22:28 -0700 (PDT) Received: from perhan.alvh.no-ip.org (unknown [190.95.6.149]) by spinlock.commandprompt.com (Postfix) with ESMTPSA id 86DC7348035; Tue, 13 Apr 2010 12:22:28 -0700 (PDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 42C886E4A9; Tue, 13 Apr 2010 15:22:26 -0400 (CLT) Date: Tue, 13 Apr 2010 15:22:26 -0400 From: Alvaro Herrera To: Lewis Kapell Cc: pgsql-admin@postgresql.org Subject: Re: TOAST behavior in 8.3 and 8.4 Message-ID: <20100413192226.GE2990@alvh.no-ip.org> References: <4BC4BBD4.40706@setonhome.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BC4BBD4.40706@setonhome.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201004/167 X-Sequence-Number: 34261 Lewis Kapell wrote: > I have a table with a text column, wherein most values range between > 800 and 1700 bytes. The data should be highly compressible, however > these values appear to be too small to trigger the TOAST mechanism - > I understand the default value of TOAST_TUPLE_THRESHOLD is about > 2kb. > However, I checked to see whether the behavior of TOAST had been > changed in 8.4, since I am hoping to upgrade soon. I found the > following comment in the release notes: > > "Consider TOAST compression on values as short as 32 bytes > (previously 256 bytes)" The 2kB are compared against tuple size. The 32 bytes (previously 256) are compared against a single column value. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support