Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 8D43A632583 for ; Tue, 13 Apr 2010 15:55:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 33235-06 for ; Tue, 13 Apr 2010 18:55:02 +0000 (UTC) X-Greylist: delayed 00:09:23.22666 by SQLgrey-1.7.6 Received: from jonah.setonhome.org (mail.setonhome.org [76.3.225.43]) by mail.postgresql.org (Postfix) with ESMTP id E05D363256C for ; Tue, 13 Apr 2010 15:55:05 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by jonah.setonhome.org (Postfix) with ESMTP id 05E836CC70D for ; Tue, 13 Apr 2010 14:45:50 -0400 (EDT) Received: from jonah.setonhome.org ([127.0.0.1]) by localhost (jonah.home.setonhome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rAgjG43+o75l; Tue, 13 Apr 2010 14:45:49 -0400 (EDT) Received: from [127.0.0.1] (unknown [76.3.225.44]) by jonah.setonhome.org (Postfix) with ESMTP id 0388E6CC6CC for ; Tue, 13 Apr 2010 14:45:49 -0400 (EDT) Message-ID: <4BC4BBD4.40706@setonhome.org> Date: Tue, 13 Apr 2010 14:45:40 -0400 From: Lewis Kapell Organization: Seton Home Study School User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: TOAST behavior in 8.3 and 8.4 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.603 tagged_above=-10 required=5 tests=AWL=-1.393, BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201004/165 X-Sequence-Number: 34259 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. This table is by far the largest in our database (1006450 rows; pg_relation_size() gives 1580 MB), and I am keen to get the data compressed. We compile from source and are currently running 8.3.10. Based on some discussions I found in the archives, I thought it might be worthwhile to lower TOAST_TUPLE_THRESHOLD and rebuild. 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)" I don't understand what that '256 bytes' refers to. That is a far cry from 2kb. I would be grateful if anyone can fill in the evident gap in my knowledge here. -- Thank you, Lewis Kapell Computer Operations Seton Home Study School