X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 4A0D8CCAF2 for ; Fri, 18 Jul 2003 07:41:57 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 49857-02 for ; Fri, 18 Jul 2003 07:42:16 +0000 (GMT) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by svr1.postgresql.org (Postfix) with ESMTP id EBA9CCCAE6 for ; Fri, 18 Jul 2003 04:41:45 -0300 (ADT) Received: from tmsl-adsl.demon.co.uk ([80.177.114.181] helo=bacon.tmsl.demon.co.uk) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 19dPsf-0005Cl-0Z; Fri, 18 Jul 2003 08:42:17 +0100 Date: Fri, 18 Jul 2003 08:42:15 +0100 From: Paul Thomas To: Martin Foster Cc: "pgsql-performance @ postgresql . org" Subject: Re: Clearing rows periodically Message-ID: <20030718084215.A14240@bacon> References: <3F13E18A.21241.4B86CB0@localhost> <3F17E2A2.28685.45CC782@localhost> <3F1799D0.1010009@ethereal-realms.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: <3F1799D0.1010009@ethereal-realms.org>; from martin@ethereal-realms.org on Fri, Jul 18, 2003 at 07:55:12 +0100 X-Mailer: Balsa 1.2.3 Lines: 25 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/285 X-Sequence-Number: 2578 On 18/07/2003 07:55 Martin Foster wrote: > [snip] > A VACUUM FULL will correct the issue, but put the site out of commission > for roughly 20 minutes as the drive crunches the information. > > My question is, should the purging of rows be done more often then once > a day for both tables. Is this why performance seems to take a hit > specifically? As there were too many rows purged for vacuum to > accurately keep track of? ISTR that there are setting in postgresql.conf which affect how many tables/rows vacuum can reclaim. The docs say that the default setting of max_fsm_pages is 10000. Maybe this should be increased for your situation? HTH -- Paul Thomas +------------------------------+---------------------------------------------+ | Thomas Micro Systems Limited | Software Solutions for the Smaller Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +------------------------------+---------------------------------------------+