X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 89767CCD10 for ; Fri, 18 Jul 2003 13:30:43 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 14635-03 for ; Fri, 18 Jul 2003 13:31:06 +0000 (GMT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 6A76FCCD0C for ; Fri, 18 Jul 2003 10:30:37 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h6IDV8Q3023423; Fri, 18 Jul 2003 09:31:08 -0400 (EDT) To: Martin Foster Cc: PostgreSQL Performance Subject: Re: Clearing rows periodically In-reply-to: <3F1799D0.1010009@ethereal-realms.org> References: <3F13E18A.21241.4B86CB0@localhost> <3F17E2A2.28685.45CC782@localhost> <3F1799D0.1010009@ethereal-realms.org> Comments: In-reply-to Martin Foster message dated "Fri, 18 Jul 2003 00:55:12 -0600" Date: Fri, 18 Jul 2003 09:31:07 -0400 Message-ID: <23422.1058535067@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/292 X-Sequence-Number: 2585 Martin Foster writes: > 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? Given that the hourly purge seems to work well for you, I'd suggest trying it on both tables. Non-FULL vacuum is intended to be run *frequently*, say as often as you've updated or deleted 10% to 50% of the rows in a table. Delaying it until you've had multiple complete turnovers of the table contents will cost you. > As there were too many rows purged for vacuum to > accurately keep track of? Only possible if you don't have the FSM parameters set high enough. Infrequent vacuuming means you need more FSM space, btw. regards, tom lane