Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 343522E0037 for ; Wed, 30 Apr 2008 13:19:57 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 05322-06 for ; Wed, 30 Apr 2008 13:19:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by developer.postgresql.org (Postfix) with ESMTP id 8FF402E002D for ; Wed, 30 Apr 2008 13:19:51 -0300 (ADT) Received: from perhan.alvh.no-ip.org (200-126-123-196.bk8-dsl.surnet.cl [200.126.123.196]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id m3UGKRVc009111 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 30 Apr 2008 09:20:29 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id A29CB47C55; Wed, 30 Apr 2008 12:19:42 -0400 (CLT) Date: Wed, 30 Apr 2008 12:19:42 -0400 From: Alvaro Herrera To: Ian Westmacott Cc: pgsql-admin@postgresql.org Subject: Re: 8.1.8 autovacuum missing databases Message-ID: <20080430161942.GC21286@alvh.no-ip.org> References: <1209499373.18622.47.camel@vega.intellivid.com> <20080429203335.GK5652@alvh.no-ip.org> <1209503103.18622.68.camel@vega.intellivid.com> <20080429211244.GM5652@alvh.no-ip.org> <1209560546.5209.12.camel@vega.intellivid.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1209560546.5209.12.camel@vega.intellivid.com> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Wed, 30 Apr 2008 09:20:30 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/309 X-Sequence-Number: 29073 Ian Westmacott wrote: > On Tue, 2008-04-29 at 17:12 -0400, Alvaro Herrera wrote: > > Can you verify whether age(pg_database.datfrozenxid) is shrinking after > > vacuuming? If the age() of a database is higher than the applicable > > max_freeze_age, then it will always be chosen. > > One of the databases is about 1.5TB, so that could take a while. > Anything else I could look at in the meantime? The age of these > databases right now is about 290039577. Also, autovacuum doesn't always > choose the same DB, it alternates between template1 and one of mine -- > going back through a couple of months of logs I don't see it ever > choosing the same one twice in a row. Right -- if you have two databases over the wraparound edge, it will alternate between them. I still think that the autovac is dying before completing the task. Did you investigate whether there are "ERROR" messages coming from autovacuum? No PG crashes would happen. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support