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 4C75411F9049 for ; Mon, 24 Apr 2006 15:41:17 -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 58926-02 for ; Mon, 24 Apr 2006 15:40:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id EEC6611F909A for ; Mon, 24 Apr 2006 14:51:19 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id CFB0C56427; Mon, 24 Apr 2006 12:51:17 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Mon, 24 Apr 2006 12:51:15 -0500 Date: Mon, 24 Apr 2006 12:51:15 -0500 From: "Jim C. Nasby" To: Gourish Singbal Cc: "pgsql-admin@postgresql.org" Subject: Re: Autovacuuming Message-ID: <20060424175115.GF48010@pervasive.com> 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> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060424:gourish@gmail.com::4P1z/criB8riTJdG:00000000000000000000 000000000000000000000000P7y9 X-Hashcash: 1:20:060424:pgsql-admin@postgresql.org::nffFRDUA0u6BzME6:00000000000 0000000000000000000000002AA5 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/246 X-Sequence-Number: 21415 On Mon, Apr 24, 2006 at 11:21:16AM +0530, Gourish Singbal wrote: > The Age of the database is 1144759836 . We have enabled autovacuuming . > The details are:- > autovacuum = on > autovacuum_naptime = 300 > autovacuum_vacuum_threshold = 10000 > autovacuum_analyze_threshold = 5000 > autovacuum_vacuum_scale_factor = 0.3 > autovacuum_analyze_scale_factor = 0.3 Those settings are *really* conservative... I normally use 400, 200, 0.2, 0.1 respectively... > Wanted to know when the auto-vacuum daemon will run an database-wide vacuum > call to avoid transaction ID wraparound failures. IIRC it will do that somewhere between 2B and 4B transactions have elapsed. The true answer lies somewhere in src/backend/postmaster/autovacuum.c. -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461