X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 941D652AE1 for ; Fri, 29 Jul 2005 18:02:12 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 45261-01 for ; Fri, 29 Jul 2005 21:02:07 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 79788529C0 for ; Fri, 29 Jul 2005 18:02:05 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j6TL1vHT019406; Fri, 29 Jul 2005 17:01:58 -0400 (EDT) To: Andrew McMillan Cc: Matthew Schumacher , pgsql-performance@postgresql.org Subject: Re: Performance problems testing with Spamassassin 3.1.0 In-reply-to: <1122668371.5691.352.camel@lamb.mcmillan.net.nz> References: <42E80C28.2040608@aptalaska.net> <1122532023.25574.1.camel@localhost.localdomain> <42E9749F.6000709@aptalaska.net> <1122616211.5691.340.camel@lamb.mcmillan.net.nz> <42EA6966.8090402@aptalaska.net> <1122668371.5691.352.camel@lamb.mcmillan.net.nz> Comments: In-reply-to Andrew McMillan message dated "Sat, 30 Jul 2005 08:19:31 +1200" Date: Fri, 29 Jul 2005 17:01:57 -0400 Message-ID: <19405.1122670917@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/488 X-Sequence-Number: 13729 Andrew McMillan writes: > On Fri, 2005-07-29 at 09:37 -0800, Matthew Schumacher wrote: >> How often should this table be vacuumed, every 5 minutes? > I would be tempted to vacuum after each e-mail, in this case. Perhaps the bulk of the transient states should be done in a temp table, and only write into a real table when you're done? Dropping a temp table is way quicker than vacuuming it ... regards, tom lane