X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 2430711F8764 for ; Mon, 24 Apr 2006 14:39:53 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 42274-02-6 for ; Mon, 24 Apr 2006 14:39:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx2.surnet.cl (mx2.surnet.cl [216.155.73.181]) by postgresql.org (Postfix) with ESMTP id 4109711F8DDB for ; Mon, 24 Apr 2006 09:41:56 -0300 (ADT) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx2.surnet.cl with ESMTP; 24 Apr 2006 08:41:56 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AQAAAF5eTESIaQEKDio X-IronPort-AV: i="4.02,198,1139194800"; d="scan'208"; a="45360338:sNHT174343476" Received: from alvh.no-ip.org (200.126.100.190) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 443B7DDC001ABD9E; Mon, 24 Apr 2006 08:41:56 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 926D3C30F8E; Mon, 24 Apr 2006 08:41:55 -0400 (CLT) Date: Mon, 24 Apr 2006 08:41:55 -0400 From: Alvaro Herrera To: Gourish Singbal Cc: "pgsql-admin@postgresql.org" Subject: Re: Autovacuuming Message-ID: <20060424124155.GA13361@surnet.cl> Mail-Followup-To: Gourish Singbal , "pgsql-admin@postgresql.org" References: <674d1f8a0604232251v4649b456xc542fd831f8db4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <674d1f8a0604232251v4649b456xc542fd831f8db4@mail.gmail.com> User-Agent: Mutt/1.5.11+cvs20060403 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/237 X-Sequence-Number: 21406 Gourish Singbal wrote: > The Age of the database is 1144759836 . We have enabled autovacuuming . > The details are:- > autovacuum = on Are you sure autovacuum is enabled? Do a "SHOW autovacuum" just to be sure. The test for database-wide vacuum is: database age > big_constant where: big_constant = (MaxTransactionId >> 3) * 3 - 100000) = 1610512733 MaxTransactionId = 0xFFFFFFFF database age = Max(frozen age, vacuum age) frozen age = next Transaction id - pg_database.datfrozenxid vacuum age = next Transaction id - pg_database.datvacuumxid Your database is still 465752897 transactions away from that apparently. -- Alvaro Herrera http://www.CommandPrompt.com/ The PostgreSQL Company - Command Prompt, Inc.