X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 695CDB439C0 for ; Fri, 4 Jul 2003 13:26:32 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 82011-01 for ; Fri, 4 Jul 2003 10:26:21 -0300 (ADT) Received: from www.pspl.co.in (www.pspl.co.in [202.54.11.65]) by svr1.postgresql.org (Postfix) with ESMTP id 94C3FB438BB for ; Fri, 4 Jul 2003 10:26:10 -0300 (ADT) Received: (from root@localhost) by www.pspl.co.in (8.11.6/8.11.6) id h64DQE604588 for ; Fri, 4 Jul 2003 18:56:14 +0530 Received: from daithan (daithan.intranet.pspl.co.in [192.168.7.161]) by www.pspl.co.in (8.11.6/8.11.0) with ESMTP id h64DQEQ04583 for ; Fri, 4 Jul 2003 18:56:14 +0530 From: "Shridhar Daithankar" To: Postgresql Performance Date: Fri, 04 Jul 2003 18:55:21 +0530 MIME-Version: 1.0 Subject: Re: can multiple vacuums gain speed? Reply-To: shridhar_daithankar@persistent.co.in Message-ID: <3F05CD99.2125.1AAF2D@localhost> In-reply-to: <3F02E98E.8070001@kling.nu> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Archive-Number: 200307/57 X-Sequence-Number: 2350 On 2 Jul 2003 at 16:17, Mats Kling wrote: > > Hi all! > > I have a big trouble with a database and hope you can help out on how to > improve the time vacuum takes. > > The database grovs to ~60Gb and after a 'vacuum full' it's ~31Gb, after > about a week the database it up to 55-60Gb again and i have to do a > 'vacuum alalyze full' to gain disk (the disk is 70Gb so I'm living on > the edge here ;( > I have a maintenancewindow once a week but vacuuming this database takes > around 10-14 hours and I really wanna cut that time down. > Since the disk is >85% full i tried to vacuum table by table instead of > doing the whole database and my feeling was that i think I gained a > speedup if I vacuumed the tables that takes most disk first (so the rest > of the tables have more disk to work on).. > can this be true or was it just a feeling? I know this is a very late reply but it might be of some help. 1. What is nature of your updates/deletes? Do you have many deletes or few updates or other way round. 2. Have you tried using pgavd? If your load involves lot's of updates, pgavd can definitely help you. HTH Bye Shridhar -- Bumper sticker: All the parts falling off this car are of the very finest British manufacture.