Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id AB6789F9A3E for ; Wed, 29 Aug 2007 07:15:25 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 34502-06 for ; Wed, 29 Aug 2007 07:15:14 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from mail01.enterprisedb.com (mail01.enterprisedb.com [63.246.7.168]) by postgresql.org (Postfix) with ESMTP id A68B89F9A3D for ; Wed, 29 Aug 2007 07:15:19 -0300 (ADT) thread-index: AcfqJYgXrsy2ZSPxRBSsES+zcghs7A== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4073 Received: from [172.24.32.72] ([62.232.55.118]) by mail01.enterprisedb.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 29 Aug 2007 06:15:31 -0400 Message-ID: <46D546FC.9070308@enterprisedb.com> Date: Wed, 29 Aug 2007 11:14:20 +0100 From: "Heikki Linnakangas" User-Agent: Icedove 1.5.0.12 (X11/20070730) MIME-Version: 1.0 To: "Kari Lavikka" Cc: Subject: Re: Performance problem with table containing a lot of text (blog) References: <46D52E61.8020706@enterprisedb.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 29 Aug 2007 10:15:31.0812 (UTC) FILETIME=[87E74A40:01C7EA25] X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200708/374 X-Sequence-Number: 26504 Kari Lavikka wrote: > On Wed, 29 Aug 2007, Heikki Linnakangas wrote: > >> The idea of being able to set the toast threshold per column was >> discussed during 8.3 development, but no patch was produced IIRC. We >> might do that in the future. If you're willing to compile from source, >> you can lower TOAST_TUPLE_THRESHOLD. > > We are currently using Postgres 8.1 but have to upgrade to 8.2 shortly. > New version fixes some vacuum problems. > > I always compile postgres from source. Maybe I have to do some > calculations because that setting affects all tables and databases. Most > of our text/varchar columns are quite short but setting the threshold > too low causes excessive seeks to toast tables... right? Right. If you have trouble finding the right balance, you can also use ALTER STORAGE PLAIN to force the other columns not to be toasted. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com