X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 292AE3B6119 for ; Thu, 16 Dec 2004 06:32:42 +0000 (GMT) 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 08738-05 for ; Thu, 16 Dec 2004 06:32:37 +0000 (GMT) Received: from web12705.mail.yahoo.com (web12705.mail.yahoo.com [216.136.173.242]) by svr1.postgresql.org (Postfix) with SMTP id B93243B60F7 for ; Thu, 16 Dec 2004 06:32:36 +0000 (GMT) Received: (qmail 55268 invoked by uid 60001); 16 Dec 2004 06:32:35 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=Q84owPNMQICuoHbAWmxviMMpKAMm7zx0G7Zddrgs++UrSiA9o/+tuDfcVoXM/DTKgM391yhRM2sBFAVxkvW+RhNUuWWI3hjHgL9nEl8OsIA7Sy6f1skRJKx/mXU8S6Q2ASS9LxnuKx5JSqc8I25pjbFJD6dS5btfyF/W1bhznBg= ; Message-ID: <20041216063235.55265.qmail@web12705.mail.yahoo.com> Received: from [69.201.130.95] by web12705.mail.yahoo.com via HTTP; Wed, 15 Dec 2004 22:32:35 PST Date: Wed, 15 Dec 2004 22:32:35 -0800 (PST) From: Reply-To: ogjunk-pgjedan@yahoo.com Subject: VACUUMing for 30 minutes To: pgsql-admin@postgresql.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.552 tagged_above=0 required=5 tests=DNS_FROM_RFC_ABUSE, NO_REAL_NAME X-Spam-Level: X-Archive-Number: 200412/150 X-Sequence-Number: 15736 Hello, I have a DB with about 30 tables, where 2 tables are significantly larger than the rest, and contain a bit over 100,000 rows. Every night I do these 3 things: VACUUM; ANALYZE; pg_dump I am noticing that the VACUUM part takes nearly 30 minutes, during which the DB is not very accessible (and a whole lot of load is put on the machine in general). Using pgsession.sh script mentioned earlier, I caught this process taking a long time: 31179 | mydb | otis | FETCH 100 FROM _pg_dump_cursor Is there anything one can do to minimize the impact of VACUUM? I am using PG 7.3.4 on a Linux box with a 1.70GHz Celeron, 1GB RAM, and a 'regular' IDE disk. Thanks, Otis